Translasi 6.10. Mencoba delete
#include <iostream.h>
#include <string.h>
#define delete(str,posisi,panjang)
strcpy(str+posisi-1,str+posisi+panjang-1)
main() {
char *kata="Algoritma";
delete(kata, 3, 5);
cout << "Hasil setelah dihapus : %s",kata);
return 0; }
No comments:
Post a Comment