Results 1 to 3 of 3

Thread: Using sputbackc () in C++

  1. #1
    ThompsonHarris is offline Senior Member
    Join Date
    Dec 2009
    Posts
    255
    Rep Power
    3

    Default Using sputbackc () in C++

    I started learning C++ language and want to create project in it. I know functions and use of them in C++. But, I didn’t have any idea about sputbackc () function. So please provide me some information about this function. Any help will be appreciated.

  2. #2
    GonzalezBrown is offline Senior Member
    Join Date
    Dec 2009
    Posts
    260
    Rep Power
    3

    Default

    The sputbackc () function utilized to put character back. The get pointer shifted back to point that to character right earlier than its place when last character got, d, that becomes available again as character that read at that position by next input operation. This function is member function of streambuf class.

  3. #3
    LewisClark is offline Senior Member
    Join Date
    Dec 2009
    Posts
    260
    Rep Power
    3

    Default

    This function puts char_type in particular stream and returns character or failure. General form of sputbackc () function is shown below:

    Code:

    int sputbackc ( char d );

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48