I'm using fflush(stdin) like this:
fflush(stdin);
printf ("Press [enter] to continue");
getchar();
printf("\n\n");
so the buffer from the menu option doesn't interfere in the getchar()......
Type: Posts; User: Dhekke
I'm using fflush(stdin) like this:
fflush(stdin);
printf ("Press [enter] to continue");
getchar();
printf("\n\n");
so the buffer from the menu option doesn't interfere in the getchar()......
Yep, I read there, but couldn't find the answer =/
Anyway, I searched more and found the fflush()
Thanks
Ok, I have this
char menu(){
char opc;
printf("Agenda Telefonica - Menu Principal\n");
printf("Opcoes:\n");
printf("1- Inserir contato\n");
printf("2- Excluir contato\n");
printf("3-...
How can a I something like that on the title?
I need to ask the user to press any key to continue (qhat will call the menu-writing function again)
Thanks
Worked perfectly
Thanks, really, a lot :D
Hi everyone,
I'm working on a Red-Black Binary Tree project that's using (or trying to) the standard bitset class.
When I try to declare a bitset inside a struct that belongs to the RBTree class...