Kod: Zaznacz cały
#include <iostream>
#include <windows.h>
using namespace std;
int go_to(int x, int y)
{
COORD c;
c.X = x - 1;
c.Y = y - 1;
return SetConsoleCursorPosition (GetStdHandle(STD_OUTPUT_HANDLE), c);
}
void main(){
int a=1;
while(a<10){
a++;
cout<<"work"<<endl;
go_to(3,6);
cout<<"work"<<endl;
}
}
Nie rozumiem dlaczego ten cykl działa tylko 1 raz, miałby działać 10 razy, prosze pomocy