Results 1 to 7 of 7

Thread: [RESOLVED] cin >> string

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444

    [RESOLVED] cin >> string

    I haven't done much with C++ and even less with string.h. I'm trying to get user input into a string, how do I do it? Again here's what I have:

    Code:
    void go()
    {
    	cout << "URI: ";
    	string	uri;
    	cin >> uri;
    }
    Last edited by Rick Bull; Sep 14th, 2002 at 04:42 AM.

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