|
|
void main()
is ileegal in C++ (and in C too). Main should return int:Standard wrote: |
---|
3.6.1.2 An implementation shall not predefine the main function. This function shall not be overloaded. It shall have a return type of type int |
Standard wrote: |
---|
3.6.1.3 The function main shall not be used within a program. |
|
|
|
|