Re: error with std::string in header file using VS C++ 6.0 SP6
From: Manuel Peinado <manupg_at_aut.uah.es>
Date: 3 Dec 2004 09:39:08 -0500 > CODE (header file) > ==== > #ifndef framing_h > #define framing_h > > #include <vector> > #include <string> > > std::string::size_type width (const std::vector<string>& v); > std::vector<string> frame (const vector<string>& v); > std::vector<string> vcat (const vector<string>& top, const vector<string>& bottom); > std::vector<string> hcat (const vector<string>& left, const vector<string>& right); > > #endif > > > ERROR REPORT > ============ > error C2065: 'string' : undeclared identifier > error C2143: syntax error : missing ',' before '<' > error C2059: syntax error : '<' >
std::string::size_type width (const std::vector<std::string>& v);
std::vector<std::string> frame (const std::vector<std::string>& v);
std::vector<std::string> vcat (const std::vector<std::string>& top, const
std::vector<std::string>& bottom);
std::vector<std::string> hcat (const std::vector<std::string>& left, const
std::vector<std::string>& right);
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Received on Fri Dec 03 2004 - 06:35:28 PST
|
Click to report inappropriate content