I am new to c++, still learning and this site is great help. :)
I have dilema about data types and hope someone will help me resolve it. For example, number of 500 billions, I get it it can't be of unsigned int type because it's too large. If I understand right it has to be float. When I print it on screen it is shown as 5e+11. Is that any way to print it in user-friendly form, like 500.000.000.000,00?
You could also use the stream format flags like std::ios::fixed and std::ios::showpoint to show a fixed number of digits after the decimal point and set setprecision() to the proper "length". But if you also want the comma and decimal point to show you'll probably need to do the formatting yourself.
I didn't know there is longlong type, that will help a lot. And for detailed formating this showpointand fixed with setprecision() thing will be usefull.