Input and Output

This is a discussion on Input and Output within the C++ Programming forums, part of the General Programming Boards category; I'm still confused with using it. I mean how do I use the "getline" and "string"function. Please help T^T...

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    4

    Input and Output

    I'm still confused with using it. I mean how do I use the "getline" and "string"function.
    Please help T^T

  2. #2
    Registered User
    Join Date
    Aug 2009
    Posts
    19
    getline.

    And std::string is a class (not a function).

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    How many tens or hundreds of thousands of times do you think such information appears on the net?!

    Are you familiar with the acronym STFW? We're not here for those that are way too lazy to use a search engine. You have your search terms - go!
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    Registered User
    Join Date
    Jan 2010
    Posts
    4
    @iMalc - Look A$$hole, people come to forums asking for help, yeah maybe this topic has come up thousands of times, what of it? If you're not gonna help, then GTFO. I have looked and some just don't make sense.
    @ctrl_freak: Thank you.

  5. #5
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    Quote Originally Posted by Muner72 View Post
    If you're not gonna help ...
    You may not think it now, but the most useful thing anyone can do for you is to help you to help yourself. I'm simply trying to open your eyes as to how most of us would have reacted to your first post. Do you believe that an "STFW" answer is never appropriate? You're going to run in to answers like that anyway, and not everyone will be as polite as I was, as you've just demonstrated.

    Please, if you do do some searching on the net and can't find what you're after, tell us what search terms you used, tell us which site you found that were too confusing for you. Help to make sure that we don't simply suggest the same articles again that you've already read. Also, do this at the very least if you don't want to come off the way you did.
    If your searching skills aren't up to it, then try asking what would be search terms to use. There's no shame in that.
    Also, tell us specifically which bits you do understand and which bits you don't follow.

    It's your lack of doing the above 3 things that rightly earned you an STFW. Try not to earn one next time huh.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Bad output -- possible input buffer problems
    By jake123 in forum C Programming
    Replies: 8
    Last Post: 02-18-2008, 02:36 PM
  3. Basic C input output program help
    By trevordunstan in forum C Programming
    Replies: 2
    Last Post: 01-27-2008, 05:41 PM
  4. Base converter libary
    By cdonlan in forum C++ Programming
    Replies: 22
    Last Post: 05-15-2005, 01:11 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21