[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Include problem



Modern C++ requires namespaces...  Either put "using namespace std;" right
after the #include statement, or else make the modification noted below:

#include <string>

int
main(){
   string aaa;
   ^^^^^^ This should be std::string

return 0;
}

regards,

-- 
Kevin B. McCarty <kmccarty@princeton.edu>   Physics Department
WWW: http://www.princeton.edu/~kmccarty/    Princeton University
GPG: public key ID 4F83C751                 Princeton, NJ 08544



Reply to: