Quick question

This is a discussion on Quick question within the C++ Programming forums, part of the General Programming Boards category; How can I input a character without having to press enter?...

  1. #1
    Seņor Member
    Join Date
    Jan 2002
    Posts
    561

    Quick question

    How can I input a character without having to press enter?

  2. #2
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    857
    Look in the tutorial!!! www.cprogramming.com!!!

    just one hint:

    it is in conio.h
    Yoshi

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    Step 1) #include <conio.h>
    Step 2)Use getch() to get a char without echoing it to the screen.
    Or use getche() to get a char and echo it to the screen

    both return a single char

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Very quick math question
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 10-26-2005, 11:05 PM
  2. very quick question.
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 07-24-2002, 03:48 AM
  3. quick question
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 07-22-2002, 04:44 AM
  4. Quick Question Regarding Pointers
    By charash in forum C++ Programming
    Replies: 4
    Last Post: 05-04-2002, 11:04 AM
  5. Quick question: exit();
    By Cheeze-It in forum C Programming
    Replies: 6
    Last Post: 08-15-2001, 05:46 PM

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