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

label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

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

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 19th, 2014
...
Nov 19th, 2014
Oct 22nd, 2017
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