Analog of system ("cls")
Please tell me if it is possible to replace cpp system(“cls”);
Something to keep the screen from flickering?
Just if you make an infinite loop, the screen starts flashing.
#include <iostream>
using namespace std;
void game()
{
for(int x = 0; x <= 10; x++)
{
for(int y = 0; y <= 10; y++)
{
if(x == 10 and y == 10)
{
cout << ‘#’;
}
else
{
cout << ‘ ‘;
}
}
cout << endl;
}
}
int main()
{
while(true) game();
return 0;
}
0
Author: Слава Носков, 2020-04-28