tajap.c: In function ‘main’:
tajap.c:38:2: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast [enabled by default]
typing=strlen(mysent);
^
In file included from /usr/include/stdio.h:29:0,
from tajap.c:1:
/usr/include/string.h:33:9: note: expected ‘const char *’ but argument is of type ‘char’
size_t _EXFUN(strlen,(const char *));
컴파일하면 이딴오류가 떠여...
아래 세개에서 뭐가 문제가 있을거같은데...strlen에 왜 오류나는지좀 알려주세요ㅠㅠ
char mysent;
int typing=strlen(mysent);
mysent=getche();
스트링부터 다시 공부하고와
힌트라도 주십셔.. .
그 함수는 문자열을 인자로 받는데, 넌 하나의 문자 혹은 8비트 정수를 저장하는데 쓰는 타잎의 변수를 인자로 줬으니까.
에러메시지에 나오는 말이 다 힌트임.
그리고 저 코드의 실행순서도 말이 안돼.
책보고 공부해.
알려주셔서 감사합니당 저 코드는 전체코드에서 관련잇는거만 뽑아온거에요 좋은하루보내십쇼
응 수고해라.
ㄴ 타잎->타입
http://dblack.tk
커뮤니티 사이트 입니다 많은 이용 부탁 드립니다.