#include <string.h>
#include <iostream.h>
main()
{
string str("this is a tesr!!");
cout<<str<<endl;
}
出现:undifined symbol 'string'
statement missing ;
undefined symbol 'str'的出错提示,该如何解决???
...全文
187打赏收藏
初级字符串问题
#include #include main() { string str("this is a tesr!!"); cout<<str<<endl; } 出现:undifined symbol 'string' statement missing ; undefined symbol 'str'的出错提示,该如何解决???