嗨我得到几个编译器警告,我无法弄清楚问题.我已经解决了其他一些小问题,但这些问题只是困扰我.谢谢您的帮助
标记
agent.h:10:错误:'FILE'之前的预期说明符限定符列表
#ifndef AGENT_H
#define AGENT_H
struct AgentInfo {
int cordRow;
int cordCol;
char indicator;
char* fileName;
char direction;
pid_t agentPid;
FILE* agentIn;//Error shows here
FILE* agentOut;;
struct AgentInfo *next;
};
struct AgentInfo *createLinkedList(int r,int c, char i, char *fn, char dir);
struct AgentInfo *addToLinkedList(int r,int c, char i, char *fn, char dir);
struct AgentInfo *findAgent(char* fn, struct AgentInfo **prevAgent);
extern struct AgentInfo *head = NULL;
extern struct AgentInfo *current = NULL;
#endif
Run Code Online (Sandbox Code Playgroud)
谢谢您的帮助
| 归档时间: |
|
| 查看次数: |
1671 次 |
| 最近记录: |