C++string 输出字符有何问题?编辑器VC++6.0
#include<iostream>#include<string>usingnamespacestd;intmain(){stringstr;getline(cin,s...
# include <iostream>
# include <string>
using namespace std;
int main()
{
string str;
getline(cin,str);
cout<<str<<endl;
return 0;
} 展开
# include <string>
using namespace std;
int main()
{
string str;
getline(cin,str);
cout<<str<<endl;
return 0;
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询