Search:

Type: Posts; User: CommonTater

Search: Search took 0.04 seconds.

  1. Replies
    6
    Views
    1,900

    Actually your version should have worked as...

    Actually your version should have worked as well... odd.
  2. Replies
    6
    Views
    1,900

    If you are going to be accepting more than single...

    If you are going to be accepting more than single digit numbers, yes you need to assess the entire length of each string...


    int i, j; // loops
    int len; // length

    for (i=1; i <argc;...
  3. Replies
    6
    Views
    1,900

    Your first problem is most likely on line 17 ......

    Your first problem is most likely on line 17 ... the contents of command line strings (argv) are ascii characters that do not convert directly to numbers... to get the integer value from an ascii...
Results 1 to 3 of 3