Код: Выделить всё
#include
#include
int main() {
std::ofstream ofile(std::string("test.txt"));
}
< /code>
Я получаю эту ошибку: < /p>
E:\C++\Bank2.cpp [Error] no matching function for call to
'std::basic_ofstream::basic_ofstream(std::string&)'
Подробнее здесь: https://stackoverflow.com/questions/797 ... e-a-file-c
Мобильная версия