Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
bool somemethod(int number){ return true; }
このメソッドでコードをコンパイルしようとすると、このエラーメッセージが表示され続けます
/Users/user/Desktop/test.c:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘somemethod’
Thing is bool isn't a true keyword in C. Include stdbool.h if you need it - this should work with C99 implementations.
bool
stdbool.h