C++文件输出输入流问题(不在默认路径下)
#include <fstream>#include <iostream>using namespace std;int main(){ int a[10];ofstream outfile("1.txt",ios::out);if(! outfile) { cout <... 展开
其他答案
C语言的转义字符问题,把ofstream outfile("d:\1.txt",ios::out);改成ofstream outfile("d:\\1.txt",ios::out);就可以了
2011-01-11 06:06
来自北京市
赞(0)点赞赞(0)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




