#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
void swap(string&str1,string&str2);
int main()
{
string a=" ",
b=" ",
c=" ";
char *p1=&a[0],*p2=&b[0],*p3=&c[0];
cout<<"please input line p1,p2,p3:"<<endl;
gets(p1);
gets(p2);
gets(p3);
if(a>b) swap(a,b);
if(a>c) swap(a,c);
if(b>c) swap(b,c);
cout<<"now the order is:"<<endl<<a<<endl<<b<<endl<<c<<endl;
return 0;
}
void swap(string&str1,string&str2)
{
string temp;
temp=str1;
str1=str2;
str2=temp;
}