Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. getline()

getline()

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dairiseky
    wrote on last edited by
    #1

    Who could explain to me how getline is working? I checked already a tutorial about it, but I didn't understand well. THX

    A P 2 Replies Last reply
    0
    • D dairiseky

      Who could explain to me how getline is working? I checked already a tutorial about it, but I didn't understand well. THX

      A Offline
      A Offline
      avenger_sb25
      wrote on last edited by
      #2

      A "PLEASE" would have been highly appreciated. istream::getline (member functions) Declarations: Form 1 istream& getline(signed char*, int, char = '\n'); Form 2 istream& getline(unsigned char*, int, char = '\n'); istream::getline, Form 1 (member function) Declaration: istream& getline(signed char*, int, char = '\n'); Remarks: This form of getline does the following: _ extracts up to the delimiter, _ puts the characters in the buffer _ removes the delimiter from the input stream _ does not put the delimiter into the buffer istream::getline, Form 2 (member function) Declaration: istream& getline(unsigned char*, int, char = '\n'); Remarks: Extracts characters into the given char * until one of the following occurs: _ the delimiter (third parameter) is encountered _ end-of-file is encountered _ (len - 1) bytes have been read >>A terminating null is always placed in the output string. >>The delimiter is also extracted. >>The delimiter is not placed into the destination string. >>Fails only if no characters were extracted. ...Avenger


      Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs

      1 Reply Last reply
      0
      • D dairiseky

        Who could explain to me how getline is working? I checked already a tutorial about it, but I didn't understand well. THX

        P Offline
        P Offline
        PrashantJ
        wrote on last edited by
        #3

        What exactly do you want?? Any specific things..

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups