-
-
Save mattn/314364 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
fix: error C2016: C では、構造体または共用体に少なくとも 1 つのメンバが必要です。 | |
struct function { | |
}; | |
*/ | |
/* | |
foo.cxx(9) : error C2146: 構文エラー : ';' が、識別子 'foo' の前に必要です。 | |
foo.cxx(9) : error C4430: 型指定子がありません - int と仮定しました。メモ: C++ は int を既定値としてサポートしていません | |
foo.cxx(9) : error C4430: 型指定子がありません - int と仮定しました。メモ: C++ は int を既定値としてサポートしていません | |
foo.cxx(10) : warning C4508: 'foo' : 関数に戻り値の型が指定されていません。戻り値を void 型と見なします。 | |
*/ | |
/* typedef void functon; */ | |
typedef void function; | |
function foo() { | |
} | |
int main(void) { | |
foo(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment