В примере кода ниже
std::string result = exec( "dir" ) ;
cout<<result;
Я получаю следующую ошибку
error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string
I suspect there is a special method to print out an std::string.
Пожалуйста, помогите мне отладить это.
Кроме того, я включил заголовочные файлы iostream.h, fstream.h и stream.
<iostream>и<fstream>безh. Если это не поможет, покажите больше кода. У вас естьusing namespace std? - person Mr Lister   schedule 19.05.2012#include <string>? - person Naveen   schedule 19.05.2012