Search:

Type: Posts; User: Fallout

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,145

    Yeah, I have the user enter input before that...

    Yeah, I have the user enter input before that line. And cin.ignore works, but I was wondering what you mean by saying I have a /newline in the input buffer.

    Thanks. :D
  2. Replies
    4
    Views
    1,145

    problem with getline

    void set_characterNameAgeSex()
    {
    char setName[ 50 ];
    char *sTransfer;
    short setSex;
    short setAge;

    // set name
    cout << "Enter a name for your character(50 char. max): ";
    cin.getline(...
Results 1 to 2 of 2