Oh, a guy who said it can't be parsed removed his message.
Type: Posts; User: Zico
Oh, a guy who said it can't be parsed removed his message.
int a, b, c;
printf("Write a random input : "); // user types 12.34.56
scanf("%d.%d.%d", &a, &b, &c);
printf("First parsed number %d, second parsed number %d, third parsed number %d", a, b, c);
...
Yeah, I'm doing it in hardway currently. Still I'm missing some experienced programmer to tell me if it is possible to use some syntax with cin where only 1 line is needed.
for example input "12...
I could handle it as a string, but it would be the hard solution. It can be done with a single scanf -command, but standard library can't be used in my case. I have worked with C couple of years, but...
I have some problems using cin -command. Let's assume someone writes a random input from keyboard and it is "123.04.00012" + <return>, how can I store numbers 123, 4 and 12 to variables? I'd like to...