list file size as mb

C++
ls -l --block-size=M
Source

Also in C++: