How to create a for loop (especially an infinite for loop)

Computer Science
Tutor: None Selected Time limit: 1 Day

in C++

Nov 19th, 2014

If you want to make something to loop forever use

either

1
2
3
for(;;){
//put the code you want to loop forever here.
}



or

1
2
3
4
5
6
7
int temp = 0;
while (temp !=1){
/*
put the code you want to loop forever here.
Make sure you never put temp = 1 in the code you put.
*/
}


Nov 19th, 2014

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Nov 19th, 2014
...
Nov 19th, 2014
Dec 7th, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer