4
下面我有一段代码,我认为它非常简单,但由于某种原因无法正常工作,因为我得到了错误savedMap.c:20:warning:隐式声明了函数'fPrintf' 。该代码是:写入C文件
#include "Structures.h"
#include "main.h"
#include <stdio.h>
#include <stdlib.h>
void populateFile() {
printf("The method is being called");
FILE *f = fopen("tempMap.txt", "w");
if(f == NULL) {
printf("The tempMap file could not be found, please ensure the file is present.");
}
const char *text = mapFirstLine;
fPrintf(f, "Some text", text);
}
'fPrintf'不存在。 'fprintf'确实。 –
警告:_implicit声明函数..._应始终视为错误_ –
如果您解决了问题,请将其标记为已回答。 [如何将答案标记为解决方案,为什么?](http://meta.stackexchange.com/a/5235/285305) –