Thứ Hai, 24 tháng 11, 2008

Ham copy chuoi =c++

#include "stdafx.h"
#include
#include
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char s1[100];
char s2[50];
int i;
cout<<"input the s1: "; cin>>s1;
cout<<<<"input the s2: "; cin>>s2;
cout<<
for(i=10;s2[i];i++)
{
s1[i]=s2[i];

}
s1[i]=0;
cout<<"s1="<<
cout<<"s2="<<

getch();
return 0;
}

Không có nhận xét nào: