Search:

Type: Posts; User: CommonTater

Search: Search took 0.07 seconds.

  1. You mean something like this? (solution in 20...

    You mean something like this? (solution in 20 lines)


    #include <stdio.h>
    #include <stdlib.h>

    int main (void)
    {
    int number = -1;
    char *asword[] =...
  2. Rod... your first attempt at this was working,...

    Rod... your first attempt at this was working, except for the missing main() function.

    Some things to read up on...
    1) Source Code formatting. Yes, believe it or not there are standards for...
  3. Well... perhaps you should have mentioned that...

    Well... perhaps you should have mentioned that instead of telling the OP his program worked as posted...
  4. You actually got it to run without a main()...

    You actually got it to run without a main() function?
    Weird!
  5. Part of the problem may be visual. All this...

    Part of the problem may be visual. All this stuff about indenting and formatting code is that it makes it a lot easier to "see" what's going on...



    if ( num1==0)
    printf("zero");
    else if (...
Results 1 to 5 of 5