我有使用链接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 2011-03-01 17:34:29
或者如果你可以告诉我错误的含义是什么,它“忘了”;当然? – Dchris 2011-03-01 17:40:19