
04.07.2006, 10:22
|
|
Флудер
Регистрация: 12.08.2004
Сообщений: 3,791
С нами:
11444066
Репутация:
2290
|
|
Что вы к main придрались? Хорошим стилем программирования считается указание типа возвращаемого значения для всех функций, КРОМЕ main (сами подумайте почему).
Ой, а давай ты не будешь нести бред, договорились? Причем еще так пафосно( КРОМЕ main (сами подумайте почему)).
Вот:
The function called at program startup is named main. The implementation declares no prototype for this function. It shall be defined with a return type of int and with no parameters:
int main(void) { /* ... */ }
or with two parameters (referred to here as argc and argv, though any names may be used, as they are local to the function in which they are declared):
int main(int argc, char *argv[]) { /* ... */ }
|
|
|