Search:

Type: Posts; User: Zico

Search: Search took 0.01 seconds.

  1. Thread: cin question

    by Zico
    Replies
    10
    Views
    1,261

    Oh, a guy who said it can't be parsed removed his...

    Oh, a guy who said it can't be parsed removed his message.
  2. Thread: cin question

    by Zico
    Replies
    10
    Views
    1,261

    int a, b, c; printf("Write a random input : "); ...

    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);
    ...
  3. Thread: cin question

    by Zico
    Replies
    10
    Views
    1,261

    Yeah, I'm doing it in hardway currently. Still...

    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...
  4. Thread: cin question

    by Zico
    Replies
    10
    Views
    1,261

    I could handle it as a string, but it would be...

    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...
  5. Thread: cin question

    by Zico
    Replies
    10
    Views
    1,261

    cin question

    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...
Results 1 to 5 of 5