首先:你引用到了std名称空间中定义的关键字,所以要using namespace std;
接下来:string是一种类型,前面的int要去掉,而且语句最后也要分号结尾:string st;
改完的程序:
#include
#include
using namespace std;
string st;
int main ()
{
string st("The expense of spirit\n");
cout<<"The size of "<
}
改了,删除,并加命名空间std
#include
#include
using namespace std;
int main ()
{
string st("The expense of spirit\n");
cout<<"The size of "<
}
#include
#include
using namespace std;
int main ()
{
string st("The expense of spirit ");
cout<<"The size of "<
}
int string st
这句是神马,删了
int string st???删之