if I have this code :
using namespace std;
int main() {
int count = 0;
while (true) {
cout << "here: " << count++ << " again
";
}
return 0;
}
After it finishes, it will go back to the beginning of the line with carriage return.
Now assume I have more than one line like so :
using namespace std;
int main() {
int count = 0;
int count2 = 3;
int count3 = 4;
while (true) {
cout << "here: " << count++ << " again
";
cout << "here: " << count2++ << " again
";
cout << "here: " << count3++ << " again
";
cout << "here: " << count-- << " again
";
}
return 0;
}
It's not working. I want to keep all lines, and when one of them finishes it returns at the beginning, but what I get is only one line in the console
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…