Results 1 to 5 of 5

Thread: cin >> char with a space...

Threaded View

  1. #1

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    cin >> char with a space...

    What is up with space:

    char pName[255];
    cin >> pName;

    "Input: Word then space";

    string strName = pName;
    cout << strName <<endl;

    "Output: Word"



    So I geuss, what is the correct way to accept user input...
    Last edited by Halsafar; Jul 22nd, 2005 at 06:31 PM.
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width