Contoh Program >>>
#include<stdio.h>>>> KLIK DOWNLOAD <<<
#include<conio.h>
#include<string.h>
#include<ctype.h>
#include<iostream>
using namespace std;
int main()
{
system ("color a");
char kalimat1[20];
char kalimat2[20];
char copy[20];
cout<<endl<<endl;
cout<<"\t Masukkan kata - 1 : "; cin>>kalimat1;
cout<<"\t Masukkan kata - 2 : "; cin>>kalimat2;
strcat(kalimat1,kalimat2);
cout<<"\t Hasil Penggabungan : "<<kalimat1;
strcpy(copy, kalimat1);
cout<<endl<<endl;
cout<<"\t Hasil Copyan : "<<copy;
getch();
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0 Response to "Program Dev C++ Penggabungan Kata dan Copy"
Post a Comment