User profile: gameprogrammer

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

How efficient is checking x>k?
In what order in terms of speed (possibly some at equal speed) will the following comparisons run (...

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?