#include <stdio.h>
#include <conio.h>
int main(void){
int c = _getch(void);
printf("%c", c);
return 0;
}
테스트코드
[test.c 2020-06-27 08:04:04.809]
,,test.c: In function 'main':
test.c:5:17: error: expected expression before 'void'
int c = _getch(void);
^~~~
test.c:5:10: error: too many arguments to function '_getch'
int c = _getch(void);
^~~~~~
In file included from test.c:2:0:
c:\mingw\include\conio.h:29:37: note: declared here
_CRTIMP int __cdecl __MINGW_NOTHROW _getch (void);
에러메세지
void 빼보지않으련 - dc Cpp
왜 void 넣으면 안되는겅미?
없으면 없는거지 왜 없다고 씀? 강박임?
;; ㅇㅋ