用string方法定义字符串变量
实现代码:
复制代码 代码如下:
#include
#include
using namespace std;
int main(){
string a,b,c,t;
cout<<"please input first string:"<
cout<<"please input second string:"<
cout<<"please input third string:"<
if(a>b){
t=a;
a=b;
b=t;
}
if(a>c){
t=a;
a=c;
c=t;
}
if(b>c){
t=b;
b=c;
c=t;
}
cout< return 0;
}



