typedef struct _stResult {
std::string x;
int y;
struct _st开发者_开发技巧Result *next;
} strResult;
In this structure i am getting the following error expected specifier-qualifier-list before std. What does this error mean?
Did you forget to #include <string>
?
The compiler obviously doesn't recognize std::string
as a type.
std::string
is not declared. If you #include <string>
at the top, the code compiles.
精彩评论