Jump to content

ajuda em C


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");
case KEY_UP: /* user pressed up arrow key */

case KEY_DOWN: /* user pressed up arrow key */
defaultrintf("Nenhuma deestas ");
endwin(); //Finalizar ncurses

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

  • 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.