Personal I need the current "cursor" coordinates of the screen, so that the user stays in the current line.
EXAMPLE
void main{
char nome[50];
char sobrenome[50];
int linhaAtual;
linhaAtual = ????;
gotoxy(1, linhaAtual);
printf("Insira seu nome:");
scanf("%[^\n]s", nome);
gotoxy(1, linhaAtual);
printf("Insira seu sobrenome:");
scanf("%[^\n]s", nome);
system("pause");
}
OBS
In the example I'm not taking into consideration the need to clean every line. I will develop.
RESEARCH
property wherex()
, wherey()
- does not work, I do not know why.
property __LINE__
- apparently the count is different.