<分区>
我是编程新手,这是我的第二个项目。 我按照讲师的笔记写了这些来使用ifstream打开一个文件但是总是有一个错误说 错误:没有匹配函数来调用“std::basic_ifstream::open(std::string&)”|
字符串文件名,命令; ifstream myfile;
cout << "Enter the file name: ";
cin >> filename;
myfile.open(filename);
while(myfile >> numloops)
{
while(numloops != 0)
{
部分代码