13.18 һַcд10ԿոҪǷŵУٰСȻٴŻַcС
#include <strstream>
using namespace std;
int main( )
{char c[50]=12 34 65 -23 -32 33 61 99 321 32;
 int a[10],i,j,t;
 cout<<array c:<<c<<endl;//ʾַеַ
 istrstream strin(c,sizeof(c));    //봮strinַc
 for(i=0;i<10;i++)
  strin>>a[i];                     //ַc10a
 cout<<array a:;
 for(i=0;i<10;i++)
   cout<<a[i]<< ;                 //ʾaԪ
 cout<<endl;
 for(i=0;i<9;i++)                   //ݷa
for(j=0;j<9-i;j++)
      if(a[j]>a[j+1])
{t=a[j];a[j]=a[j+1];a[j+1]=t;}
 ostrstream strout(c,sizeof(c));    //stroutַc
 for(i=0;i<10;i++)
   strout<<a[i]<< ;               //10ַc
 strout<<ends;                      //\\0
 cout<<array c:<<c<<endl;         //ʾַc
 return 0;
} 