Get the size of all the directories in current directory in linux

C++
du -h --max-depth=1
Source

Also in C++: