我正在为学校做一个项目,这是一直在警告我的警告.我的代码有什么问题?
fprintf(fp,"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%d\n", Item[i]->ID, Item[i]->Date, Item[i]->Adress,
Item[i]->Street number, Item[i]->Postal Code,
Item[i]->City, Item[i]->Phone,Item[i]->Name,
Item[i]->Price);
Run Code Online (Sandbox Code Playgroud)
还有另一个警告:
警告:格式'%d'需要类型为'int'的参数,但参数10的类型为'char*'[-Wformat]
我不知道该怎么办
c ×1