Which command reads one character even if that character is a blank space? :?:
kristen237
0
Newbie Poster
Recommended Answers
Jump to Posttry
#include <cstdio> int ca; ca = fgetc(stdin);
Jump to Postfgetc is a C function. The C++ way to do it is
char ch = std::cin.get()
All 5 Replies
gerard4143
371
Nearly a Posting Maven
Bench
212
Posting Pro
Software guy
6
Junior Poster
PrimePackster
10
Runaway Poster
PrimePackster
10
Runaway Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.