#include
#include
using namespace std;
int main(int argc, char *argv[])
{
char kata[10]="saya ";
char *kata1="suka ";
string kata2="dasar-dasar pemrograman";
cout<
char s[100]= "saya cinta";
char s1[100]= " universitas ahmad dahlan " ;
cout << " sebelum strcat (s, s1)" << endl;
cout << "\t s : " << s << endl;
cout << "\t s1 : " << s1 << endl;
strcat(s, s1);
cout << " sebelum strcat (s, s1)" << endl;
cout << "\t s : " << s << endl;
cout << "\t s1 : " << s1 << endl;
cout << s << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
0 comments:
Posting Komentar