Get file size when displaying contents of a folder

I fairly new to C++. I have to write a C++ program that will display the contents of a folder and if the item is a file it has to show the file size. I cant get the file size to work, here is what I have so far.