Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   [help] fungsi 'strcpy' not responding (C) (https://forum.ceriwis.com/showthread.php?t=574316)

JagoVB 20th November 2011 09:06 AM

[help] fungsi 'strcpy' not responding (C)
 
ok, gini gan. ane lagi ngerjain tugas pemrograman C tentang manipulasi array dari tipe data bentukan (struct). Nah yang ane bingung, ane kagak bisa copy konten dari array variabel yang satu ke yang lain gan. kesalahannya bukan dari syntax, tapi berupa logic error.



ini potongan programnya

<div style="margin:20px; margin-top:5px; ">
Quote:





data_mhs2 = (mhs*) malloc (jml_data+1*sizeof(mhs));

for (i=1; i


All times are GMT +7. The time now is 02:25 AM.