C++ Adding, then loop operation

Status
Not open for further replies.

ShArP

Right off the assembly line
I am very new to programming and I am trying to create an application that will add 1 to 0000000000000000000, once it has added one and creates 0000000000000000001, then if i run the function again it will make 0000000000000000001 equal 0000000000000000002.

Any help would be greatly appreciated
 

dheeraj_kumar

Legen-wait for it-dary!
0000000000000000000 is no different from 0 (assuming you're just processing them as numbers, not strings)

Code:
int num = 0;

void function()
{ 
  num = num + 1;
}
 
Status
Not open for further replies.
Top Bottom