+ 1
How do i make a program that runs more than once?
in my code weather generator(not a text gen) i want to make it look like the weather is actually updating but i dont know how to go about it without getting an error.
11 Respostas
+ 10
system("cls")
example:
https://code.sololearn.com/cXmBP9p5Go8X/?ref=app
+ 7
if your program works once it should work repeatedly make sure that your variables are working correctly if you have increments ect 👍
+ 6
did you put your code inside the curley braces ? {program}
+ 5
you could loop the program using a for loop?
+ 3
You can do it like
int main(){
aPoint:
//The whole program
goto aPoint;
}
+ 1
Can you be more specific? Do you want it to have random weather? Should it be in a loop?
+ 1
Blx it should loop the same weather but the stuff on screen should change places everytime it goes through the cycle
+ 1
D_Stark i tried using for(;;){} but i got i think it said "time limit exceeded"
+ 1
D_Stark yes i did