Mencoba strcpy
#include <iostream>
#include <string.h>
#include <conio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
main(){
char pas[20] = "ALGORITMA";
char cop[20];
strcpy(cop, pas);
cout<<cop;
}
C++
sumber http://elpituyogi.blogspot.co.id/2016/04/tugas-diktat-bab-7-kasus-68.html
Mencoba strcpy (TUGAS DIKTAT BAB 7 KASUS 6.8)
Mencoba strcpy (TUGAS DIKTAT BAB 7 KASUS 6.8)
okleq
5.0
stars based on
35
reviews
Mencoba strcpy #include <iostream> #include <string.h> #include <conio.h> /* run this program using the console pauser o...
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon