how do you restart?? ( to the beginning of the code)
i tried with:
but dindt workCode:return 1;
PS: i am working in a main function and repeating by main(); is illigal
( i dont know why but everbody tells me that)
how do you restart?? ( to the beginning of the code)
i tried with:
but dindt workCode:return 1;
PS: i am working in a main function and repeating by main(); is illigal
( i dont know why but everbody tells me that)
>how do you restart?? ( to the beginning of the code)
Wrap the whole of your program in a loop:
>i dont know why but everbody tells me thatCode:int main() { bool done = false; while ( !done ) { // Program logic } }
The main function can't be called recursively in C++. It's a rule set by the language standard, though several compilers will allow it for backward compatibility with C and non-standard C++.
My best code is written with the delete key.
one problem in my main function there is already a loop
and if i am just , you can put an loop in a loop??
but thnx for the answer
yes - you can
or you can build another function move there the "Program logic" part and get the simple main function like the suggested above
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
srry was wrong just tested and it woks
You could use some tutorials. You are missing some basics of C++.
Try some on this site. (www.cprogramming.com)
"The Internet treats censorship as damage and routes around it." - John Gilmore