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

Friday, December 16, 2011

STRCAT pada C++

#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
char kata1[5] = "SATU";
char kata2[5] = " DUA";
strcat(kata1, kata2); // nilai kata1 menjadi “SATU DUA”
cout << "Kata1: " << kata1 << endl;
}

0 comments:

Post a Comment

Terimakasih telah berkunjung dan berkomentar disini...