cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
How to read this line blank? in C
How to read this line blank? in C
Oct 8, 2011 at 12:35am UTC
Arthur Lucas
(22)
This entry is my code
imput:
1
10 6
But I do not know how to read this line blank?
The first line of input, is a integer number(int), and in the second line I don't know how I can read it.
I tried read the second line with %c, but it wasn't right.
Oct 8, 2011 at 8:13am UTC
chinalinux
(26)
scanf("%i\n%i %i\n", &data);
Last edited on
Oct 8, 2011 at 8:13am UTC
Topic archived. No new replies allowed.