String Error
-
Hi, In the below code I've copied the value of a string variable into "store" (which is Char(50). When I print the value of store, it crashes!!! please can someone tell me how to store from string to char and print the value of char!! thanks, John:confused: Code: ====================================================================== strcpy(store,ret.c_str()); printf("%s",store); ======================================================================
-
Hi, In the below code I've copied the value of a string variable into "store" (which is Char(50). When I print the value of store, it crashes!!! please can someone tell me how to store from string to char and print the value of char!! thanks, John:confused: Code: ====================================================================== strcpy(store,ret.c_str()); printf("%s",store); ======================================================================
-
what u did is correct, but printf crashes if store == null, check for this Papa while (TRUE) Papa.WillLove ( Bebe ) ;
-
In that case, the strcpy would fail too, surely? Steve S [This signature space available for rent]