아마도 중요한 질문은 아니지만 c로 시작하는 것이 좋습니다. 왜 이것이 올바르게 컴파일되지 않습니까?문자열로 정수를 변환하는 문제가 있습니다.
#include <stdio.h>
#include <stdlib.h>
void main()
{
int i = 15;
char word[100];
itoa (i,word,10);
printf("After conversion, int i = %d, char word = %s", i, word);
}
'비 표준 기능은 오류 메시지
Undefined symbols:
"_itoa", referenced from:
_main in ccubsVbJ.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
표준이 아닌 함수이며 stdlib.h에 포함되어 있지 않을 수 있습니다. wikipedia, http://en.wikipedia.org/wiki/Itoa를 참조하십시오. – thelaws
메인을'int main()'으로 정의하십시오. 더 많은 것 : http://stackoverflow.com/questions/636829/difference-between-void-main-and-int-main – Muggen
모든 질문은 중요합니다 - 누군가를 위해 :-) –