2012-11-07 3 views
0

그래서 내가 파일을 읽을 수 분석, 그리고 난 4 개 기능이 있어야합니다 그것이 지금 작동, 내가 잘못 컴파일,은 fget를 사용하고

/* Queue functions */ 

/* Basic type for the queue data structure */ 
typedef struct queue { 
    node *front;   /* Front of the line */ 
    node *rear; 

    /* Back of the line */ 
} queue; 

죄송 주요 기능입니다.

+0

왜 당신이이 질문에 밖으로 거의 모든 편집 했습니까? 지금과 같이 의심의 여지가 없습니다. 질문을 삭제하려면 수정하는 대신 삭제 링크를 클릭하기 만하면됩니다. –

답변

1

str2cardcard2str의 경우 프로토 타입과 실제 기능이 다릅니다. 그들은 동일해야합니다. 아마 다른 사람도 마찬가지 일 것입니다.

당신은 프로토 타입은 여기에 있습니다 :

// Utility functions 
node_data str2card(char *buf); 
char *card2str(node_data c, char *buf); 

나중에 기능 :

/* Convert a string like 14D into a card */ 
card str2card(char *buf){ 
... 
} 
... 
/* Given a card c, put a string like 14D in buf representing it. Good 
for printing */ 
char *card2str(card c, char *buf){ 
... 
} 
관련 문제