Channel PIN : C004874EF
"JOIN BBM Channel Official Anak Kos Entertainment"

Friday, December 16, 2011

STRCPY pada C++

#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
char kata1[20] = "HALLO";
char kata2[20];
strcpy(kata2, kata1);
cout << "Kata1: " << kata1 << endl;
cout << "Kata2: " << kata2 << endl;
}

0 comments:

Post a Comment

Terimakasih telah berkunjung dan berkomentar disini...