a simple question

This is a discussion on a simple question within the C++ Programming forums, part of the General Programming Boards category; In C, there is getchar(); how about in C++, what is it called?...

  1. #1
    Unregistered
    Guest

    a simple question

    In C, there is getchar();
    how about in C++, what is it called?

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    2
    would it be..
    cin.get
    or
    cin.getline

  3. #3
    Registered User kitten's Avatar
    Join Date
    Aug 2001
    Posts
    109
    getch() in <conio.h>
    Making error is human, but for messing things thoroughly it takes a computer

  4. #4
    Registered User cody's Avatar
    Join Date
    Sep 2001
    Posts
    86

    uhm

    Heyho,

    what's so C++-like with getch?! I'd say nothing
    I'd agree with cin as you said urself, before.

    aloa
    cody
    #include "reallife.h"

  5. #5
    Registered User kitten's Avatar
    Join Date
    Aug 2001
    Posts
    109
    Whopsey... I missed the point in the question
    Making error is human, but for messing things thoroughly it takes a computer

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    241
    couldn't getch() be better if they just wanted to wait until a user pressed enter or something

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question regarding variables
    By Flakster in forum C++ Programming
    Replies: 10
    Last Post: 05-18-2005, 09:10 PM
  2. Simple class question
    By 99atlantic in forum C++ Programming
    Replies: 6
    Last Post: 04-21-2005, 12:41 AM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 09:46 AM
  4. simple question.
    By InvariantLoop in forum Windows Programming
    Replies: 4
    Last Post: 01-31-2005, 12:15 PM
  5. simple fgets question
    By theweirdo in forum C Programming
    Replies: 7
    Last Post: 01-27-2002, 06:58 PM

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