#include <stdio.h>
#define MAX 9
void main (int argc, char *argv[]) {
printBoard();
}
void printBoard(void) {
int row,col;
row=col=0;
for(row;row<MAX;row++) //row navigation
for(col;col<MAX;col++){//column navigation
printf("r:%d,c:%d",row,col);
}/*End Column Nav*/
printf("\n");
}
나는 내가 잘못 여기서 뭐하는 거지 모르겠어요 - 오류가 내가 얻을 :충돌 유형
"경고 : 'printBoard' [기본적으로 활성화] 주에 대한 충돌 유형 : 이전의 'printBoard'의 암시 적 선언이 여기에 있습니다.
printBoard()의 범위에서 프로토 타입이 없습니다. 또한 main()은 int를 반환합니다 (범위 내에 (보이지 않는) 프로토 타입이 있습니다) – wildplasser
[Getting " 기능에 대한 충돌 유형 "C에서 왜?] (http://stackoverflow.com/questions/1549631/getting-conflicting-types-for-function-in-c-why) – WhozCraig
답변이없는 질문은 다음과 같습니다. 'void main()'을 받아들입니까? 같은 이유로 끔찍한 잘못입니다. – wildplasser