Jump to content

ajuda em C


br_viseu
 Share

Recommended Posts

int main()
{

char ch; //

initscr(); //Inicializa a ncurses
clear(); //Limpa a tela

//mvprintw(3, 10, "Olá, Mundo!");
//Na linha 3, coluna 3 escreva Olá, Mundo!
refresh(); //Atualizar tela
ch= getch();
switch (ch) {
case KEY_BACKSPACE: /* user pressed backspace */
printf("Tecla Apagar premida");
break;
case KEY_UP: /* user pressed up arrow key */
printf("ACIMA");
break;

case KEY_DOWN: /* user pressed up arrow key */
printf("ABAixo");
break;
defaultrintf("Nenhuma deestas ");
}
endwin(); //Finalizar ncurses
return(0);
}

Porque é k isto n faz o k eu quero kd carrego no backspace?(aparece "^?"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.