RE: Fw: [Dev-C++] First experience with Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Luigi S. <gi...@li...> - 2002-01-23 16:26:11
|
At 17:13 22/01/02 +0200, Ioannis Vranos wrote:
> >
> > Hello list,
> >
> > Consider me as a newbie, I just know (or think to know) a few
> > elementary things about C (I mean "antique" ANSI C-89).
>
>I wouldn't say it is an antique. :)
Thanks, I feel a bit younger know :-)
>...
>
> > #include <stdio.h>
> > int main(int argc, char *argv[])
> > {
> > printf("Hello Dev-C++");
> > return 0;
> > }
>
>...
>
> > #include <iostream>
> > #include <stdlib.h>
> > int main(char * argv = new char [1024], int argc)
> > {
> > cout << "Hello Dev-C++";
> >
> > delete [] argv;
> >
> > float wait = 0;
> > while (wait < 1E9) //see program notes
> > wait++;
> >
> > return 0;
> > }
>
>...
>
> > - is the order of the parameters correct in the first or in the second
> version?
>
>The order of parameters doesn't matter.
Probably my last question was not very clear. Here it is again.
Which one of these is correct?
int main(int argc, char **argv) {...} | int main(char **argv, int
argc) {...}
Or are the two forms both correct?
In other words: the order of parameters does or does not matter)?
--
Luigi
gi...@li...
|