kmote
Seg Fault'n,
- Messages
- 5,801
Now my for loops have issues. The machine just skips right over it. Before it I had a goto thing for demonstration but it just exploded in an infinite madhouse.
Code:int iii=0; for (;iii>10;){ cout<<"HI"<<endl; iii++; }
You've probably got your iii variable because you have two other loops already taking i and ii. If you create your variable as Soul has you will be able to re-use i. C++ allows this syntax where C does not so you should confirm that you are using the correct compiler.
For a start you've set it to continue while iii is greater than 10. Seeing as it starts at 0, that'll never happen.
Code:for(int iii=0;iii<10;i++){ cout<<"HI"<<endl; }
Make sure you're incrementing the correct variable.