你可能感兴趣的试题
ofstream ofile;ofile.open("C://vc//abc.txt",ios::binary); fstream iofile;iofile.open("abc.txt",ios::ate); ifstream ifile("C://vcXXabc.txt"); cout.open("C://vc//abc.txt",ios::binary);
对象infile只能用于文件输入操作 对象outfile只能用于文件输出操作 对象iofile在文件关闭后,不能再打开另一个文件 对象iofile可以打开一个文件同时进行输入和输出
ofstream ofile;ofilopen("C://vc//abtxt",ios::binar; fstream iofile;iofilopen("abtxt",ios::at; ifstream ifile("C://vcXXabtxt"); couopen("C://vc//abtxt",ios::binar;
ofstream ofile;ofile.open("C://vc//a.txt",ios::binary); fstream iofile;iofile.open("a.txt",ios::ate); ifstream ifile("C://vc//a.txt"); cout.open("C://vc//s.txt",ios::binary);
fstream ifstream ofstream iostream
ofstream ofile;ofilopen("C://vc//txt",ios::binar; fstream iofile;iofilopen("txt",ios::at; ifstream ifile("C://vc//txt"); couopen("C://vc//txt",ios::binar;
ofstream ofile;ofile.open("C:////vc//abc.txt",ios::binary); fstream iofile;iofile.open("abc.txt",ios::ate); ifstream ifile ("C://vc //abc.txt"); cout.open("C:////vc//abc.txt",ios::binary);
ofstream ofile;ofilopen("C:////vc//abtxt",ios::binar; fstream iofile;iofilopen("abtxt",ios::at; ifstream ifile ("C://vc //abtxt"); couopen("C:////vc//abtxt",ios::binar;
ofstream ofile; ofilopen("C://vc//abtxt",ios::binar; fstream iofile; iofilopen("abtxt",ios::at; ifstream ifile("C://vc//abtxt"); cout,open("C://vc//abtxt",ios::binar;
ifstream fin; fin. open("d://test.txt", ios_base::in); fstream fio; fio. open("d://test. txt”, ios_base::out); ofstream fout; fout. open("d://test. txt”, ios_base::out); ofstream fout; fout. open("d://test. txt”, ios_base::app);
对象infile只能用于文件输入操作 对象outfile只能用于文件输出操作 对象iofile在文件关闭后,不能再打开另一个文件 对象iofile可以打开一个文件同时进行输入和输出
ofstream ofile;ofile.open("C://vc/LabC.txt",ios::binary); fstream iofile;iofile.open("abC.txt",ios::ate); ifstream ifile("C://vc/abC.txt"); cout.open("C://vc/abC.txt",ios::binary);
fstream fin(“A: abc.txt”); ofstream fin (“A: abc.txt”); ifstream fin(“A: abc.txt”,ios:: app); ifstream fin(“A: abc.txt”,ios:: nocreate);
ifstream fin;fin.open("d:/test.txt",ios_base::in); fstream fio;fio.open("d:/test.txt",ios_base::out); ofstream fout;fout.open("d:/test.txt",ios_base::out); ofstream fout;fout.open("d./test.txt",ios_base::app);
fstream fin(“A: abtxt”); ofstream fin (“A: abtxt”); ifstream fin(“A: abtxt”,ios:: ap; ifstream fin(“A: abtxt”,ios:: nocreat;
对象infile只能用于文件输入操作 对象outfile只能用于文件输出操作 对象iofile在文件关闭后,不能再打开另一个文件 对象iofile可以打开一个文件同时进行输入和输出
ofstream ofile;ofilopen("C://vc/Labtxt",ios::binar; fstream iofile;iofilopen("abtxt",ios::at; ifstream ifile("C://vc/abtxt"); couopen("C://vc/abtxt",ios::binar;
ofstream ofile; ofile.open("C://vc//abc.txt",ios: :binary); fstream iofile; iofile.open("abc.txt",ios::ate); ifstream ifile("C://vc//abc.txt"); cout.open("C://vc//abc.txt",ios: :binary);