Sabtu, 16 April 2016

TUGAS DIKTAT BAB 7 KASUS 6.8

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++

0 komentar:

Posting Komentar