Search:

Type: Posts; User: Dhekke

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,481

    I'm using fflush(stdin) like this: ...

    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()......
  2. Replies
    10
    Views
    1,481

    Yep, I read there, but couldn't find the answer...

    Yep, I read there, but couldn't find the answer =/

    Anyway, I searched more and found the fflush()

    Thanks
  3. Replies
    10
    Views
    1,481

    Ok, I have this char menu(){ char opc;...

    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-...
  4. Replies
    10
    Views
    1,481

    "Press any key to continue"

    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
  5. Replies
    3
    Views
    4,294

    Worked perfectly Thanks, really, a lot :D

    Worked perfectly

    Thanks, really, a lot :D
  6. Replies
    3
    Views
    4,294

    Using bitset class inside another

    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...
Results 1 to 6 of 6