|
From: Per W. <pw...@ia...> - 2004-09-21 20:49:30
|
Ouch. Besides the misspelled include, the coding style of the example is a bit ancient. Not specifying a return type for main, i.e. defaulting to int. Not specifying any parameter prototypes either, just empty parentheses wich is something completely different from empty parentheses in C++ where it would have been a short form for main(void) but in C represents something like main(...) i.e. whatever. /Per W On Tue, 21 Sep 2004, Daniel K. O. wrote: > Per Westermark wrote: > > >However, I saw two main() but a single #include of a non-existing header > >file. I wanted to make sure that is was just an imcomplete cut-and-paste > >of two separate programs. > > > > OMG, this *IS* in the Dev-Cpp's Help file!!!!! o.O > Go to "An introdutcion to C Programming" -> "Topics" -> "Your First > Program" if you don't believe. > Please someone slap who wrote this chapter. Two times. > > Daniel K. O. |