unbuffered input, how to do it?

This is a discussion on unbuffered input, how to do it? within the C++ Programming forums, part of the General Programming Boards category; I want to use something like cin or getchar, without the buffer. I've read its not possible, i'm using linux......

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    106

    unbuffered input, how to do it?

    I want to use something like cin or getchar, without the buffer. I've read its not possible, i'm using linux...

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    It's possible, but it's not portable unless you use a library.

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,652

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    106
    i should have said, "... and portable" , so no, its not possible unless i use conio.h or something like that. I thought there was some 'unbuffer' parameter for iostream of stdio

  5. #5
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    conio.h is not portable, but yeah...... I think ncurses supports this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. input redirection
    By sashaKap in forum C Programming
    Replies: 6
    Last Post: 06-25-2009, 01:59 AM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. Input statement problem
    By une in forum C Programming
    Replies: 3
    Last Post: 05-29-2007, 11:16 PM
  4. For loop problems, input please.
    By xIcyx in forum C Programming
    Replies: 2
    Last Post: 04-22-2007, 03:54 AM
  5. I would love some input on my BST tree.
    By StevenGarcia in forum C++ Programming
    Replies: 4
    Last Post: 01-15-2007, 12:22 AM

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