jaapdeboer wrote: In the book that I hired from the library and another one that I have at home both say this: #include iostream.h void main(void) { cout << "hello world"; } Not being funny, but those books are either full of crap, or seriously outdated (by at least 5 or 6 years). main returning void is non-standard (it can accept a void type for the parameter list). main does not require a return, however if it is missed, then there is an implicit return 0 included.
Ian Darling "The different versions of the UN*X brand operating system are numbered in a logical sequence: 5, 6, 7, 2, 2.9, 3, 4.0, III, 4.1, V, 4.2, V.2, and 4.3" - Alan Filipski