C语言在C盘根目录下建立文件

C语言在C盘根目录下建立文件
怎样在C盘根目录下建立一个文件? 我用 "c:\\a.txt" 这样的不好使啊提示我说warning C4091: 'typedef ' : ignored on left of 'unsigned short' when no variable is declared

那要怎么在C盘根目录下建文件啊 求助!
FILE *fp;
fp=fopen("C:\\a.txt","wt");
#include <巧冲iostream>
#include <唤唯fstream>孝链歼

using namespace std;

int main ()
{
ofstream fout ("c:\\a.txt");
return 0;
}
← 上一篇: 下一篇: →