Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此行有多个标记 - 先前定义的“类型”在这里 - 重新定义参数“类型”
int parseLine(char* line, int* day, float* amount,char* type, char* type);
这就是我在 Eclipse 的头 C 文件中遇到的错误
该错误告诉您您定义char* type了两次
char* type
您使用了type两次变量名。
type
用一些不同的名称替换行
int parseLine(char* line, int* day, float* amount,char* type, char* type2);