but there are a little problem about input, then i have writen a test program.And i have found a strange thing.
This is my code:
[cpp]
#include <iostream.h>
void main()
{
int a;
while (cin >> a)
cout << a << endl;
}
[/cpp]
- input:
15
00
01
02
05
07
08
09
10
- output:
15
0
1
2
5
7
0
8
0
9
10
I have input only one number,why a have two number?
Please help me,Thank you.