User profile: gameprogrammer

User info
User name:gameprogrammer
History
Joined:
Number of posts:31
Latest posts:

Why does this code output this number (it should be different)
wow, great idea coder777.

Why does this code output this number (it should be different)
[code] float i,m,n; float newsum=0; for (i=1;i<=10;i++) for (m=1;m<=10;m++) ...

How to display numbers with decimals
[code] float put; put = 6/120; cout << put; [/code] This outputs 0. Why is it so and how can ...

How to create an n amount of 'for' loops without writing all of them out?
JLBorges (or anyone else). So how would I write my exact code in your proposed shortened form?

How to create an n amount of 'for' loops without writing all of them out?
JLBorges. I get the following error: [output]range-based 'for' loops are not allowed in C++98 mode[...