The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Where do I get cin.getch()? by oot 2004-12-06 17:06:34
#include<iostream>
using namespace std;

gets me cin, but I can't use cin.getch(). Where do I get that?

Alternately, if I have a line in the format:
blahblahblahblahblah Name That Contains Spaces
and I've already written code to discard the blahblah part, how can I get all of Name That Contains Spaces into one variable, still stopping when I hit the newline?
[ Reply ]
  In general, by ManiacJoe2004-12-06 17:10:35
    Hmm... getline() has disappeared too by oot2004-12-06 17:12:59
  Nevermind, get() works (n/t) by oot2004-12-06 17:15:31
  There is no istream::getch by nix2006-11-19 12:55:59
    Thanks! (n/t) by oot2004-12-06 17:21:50

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)