내가 컴파일 연결 lists.when를 사용하여 큐와 프로그램을 가지고, 그것은 다음과 같은 오류가 있습니다큐 구현
expected ‘)’ before ‘*’ token >>in error_line
///USEFUL PART OF THE PROGRAM
//queue struct
typedef struct{
int embros,piso,adeia;
int pinakas[PLITHOS];
}Q;
int main(){
Q oura_apo; //define a new queue
dimiourgia(&oura_apo);//create the new queue
return 0;
}
//this function creates a new empty list
void dimiourgia(Q *oura){ //this is error_line
oura->embros=0;
oura->piso=0;
}
메인은 어디에 있습니까? 함수 안에서 'dimiourgia()'를 호출하고 있습니까? 여기에없는 코드에서';'또는'')를 잊어 버린 것 같습니다. – nmichaels
또는 오류의 의미를 알려주시겠습니까? "잊어 버렸습니다." 확실히? – Dchris