User Profile

Collapse

Profile Sidebar

Collapse
DarkArtanis
DarkArtanis
Last Activity: Aug 20 '07, 04:07 AM
Joined: Aug 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • DarkArtanis
    started a topic Command Line C compiler
    in C

    Command Line C compiler

    Hello guys, Im at my uncle's house, with his loved laptop and a dial-up conection and I need to try some codes that i've written for a subjet at collage... so I need a simple C Compiler, I don't need an IDE sistem, just the compiler and the libs... do you know a simple compiler?

    OS: Win32

    Thanks a lot,
    DarkArtanis
    See more | Go to post

  • DarkArtanis
    replied to command line arguments
    in C
    On C, you can pass command line using something like this:

    Code:
    int
    main(int argc, char * argv[])
    {
    int i;
    
    printf("The arguments of %s are %d, and they are:\n",argv[0],argc-1);
    
    for (i = 0 ;  argv[i] != NULL ; i++ )
    
    printf("%d: %s\n",i,argv[i]);
    
    return 0;
    }
    on argc are strored the amount of argmuments of the...
    See more | Go to post

    Leave a comment:


  • scanf takes from the standart input the information that you have just entered in the format that you have choose, it needs the pointers of the variable for stores that information (on c, the variables are passed by value), if you don't pass a valid pointer, C will try to evaluate the value of the variable as a memory direction and if you are lucky, that would be an invalid direction an your program will abort with a "Segmentati on Fault"....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...