Halo Ivan,

untuk mengisikan karakter ', perlu dilakukan escaping.
misal:
a = 'Jum\'at';

untuk tau karakter enter, cek dengan karakter '\n',
misal:
if (a[5] == '\n')
{
...
}

gitu mungkin ^_^


On 3/6/06, Ivan Hadiyan TS <[EMAIL PROTECTED]> wrote:
>
> Rekans,
> numpang tanya sebentar...Gimana caranya kita bisa memasukkan karakter ' ke
> dalam char di C++ ya ?
> Misal: Jum'at
> Kan tidak bisa tuh dimasukkan pake perintah :
> char a='Jum'at'
> pasti error kan, gimana ya ?
> Btw, saya pake fopen buat buka file, terus filenya ada Enternya...
> Misal isi file :
> abe
> cdw
> Kan ada enternya tuh setelah huruf e, gimana caranya saya buat programnya
> tau bahwa setelah huruf e adalah Enter?
> Mohon pencerahan rekans2 yang hebat2, trims :-)
>
>
> Sincerely,
> Ivan Tan
>
>


--
Best Regards,

Aryo Sanjaya


[Non-text portions of this message have been removed]



-- 
www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia 
Info, Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED] 
:: Hapus bagian yang tidak perlu (footer, dst) saat reply! :: 
## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ##
$$ Iklan/promosi : www.itcenter.or.id/sponsorship $$

[@@] Jaket ITCENTER tersedia di http://shop.itcenter.or.id 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ITCENTER/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Kirim email ke