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) –