"error C3861: 'exit': identifier not found" from the keyboard subroutine:
- void keyboard(unsigned char key, int x, int y){
- switch(key){
- case 27:
- exit(0);
- break;
- }
- }
Finally, I found the solution that is to add the include information on the top of the cpp file.
#include < stdlib.h >
沒有留言:
張貼留言