🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.cs.200
Article #141

reading in one character at a time from cin

#141
From: charles anderson
Date: Tue, 24 Nov 1998 00:00
10 lines
580 bytes
Use something like


char ch;

cin.get(ch);

to read a single character, including a space, from standard input.

	Chuck
Technical Details
Message-ID: <73fcm0$jlq@clapton.cs.colostate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 127144,ab1cbd3186fa1b87,start
X-Google-Attributes: gid127144,public
From: anderson@clapton.cs.colostate.edu (charles anderson)
Subject: reading in one character at a time from cin
Date: 1998/11/24
Message-ID: <73fcm0$jlq@clapton.cs.colostate.edu>
X-Deja-AN: 415320286
Distribution: usa
Organization: Colorado State University -- Computer Science Department
Newsgroups: csu.cs.200