any substitute for conio.h(turbo c++) in g++ compiler?

This is a discussion on any substitute for conio.h(turbo c++) in g++ compiler? within the C++ Programming forums, part of the General Programming Boards category; couldn't find the other way out for getting characters entered from the user as one can do with getch() under ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    9

    any substitute for conio.h(turbo c++) in g++ compiler?

    couldn't find the other way out for getting characters entered
    from the user as one can do with getch() under turbo c++ compiler.

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    g++ follows the standard, so unless you want to import a console I/O library from elsewhere, you're limited to iostream and cstdio

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    9
    thanks man! but can u tell me where will I get such library?

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,674
    The library will be OS specific.

    What OS are you using?

    gg

  5. #5
    Registered User
    Join Date
    Mar 2005
    Posts
    9
    linux(red hat 9)

  6. #6
    Registered User Scribbler's Avatar
    Join Date
    Sep 2004
    Location
    Aurora CO
    Posts
    266
    Look for the ncurses library for linux.

    Chances you already have it installed. Try doing a man or info on curses or ncurses. You may have to add the .h extension to the man search (not currently at *nix box at the moment to confirm).

  7. #7
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,674

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM

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