C言語なら俺に聞け(入門編)Part 63
■ このスレッドは過去ログ倉庫に格納されています
0064デフォルトの名無しさん
2010/04/14(水) 02:03:12ないよ。
ISO C++ 3.6.1 p2
> This function shall not be overloaded. It shall have a return type of
> type int, but otherwise its type is implementation-defined.
http://www.kijineko.co.jp/tech/superstitions/void-main.html
> 一方、標準C++では、main の返却値の型は int でなければならないことが
> 明記されていますので、・・・
http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.3
> main() must return int. Not void, not bool, not float. int. Just int,
> nothing but int, only int.
■ このスレッドは過去ログ倉庫に格納されています