Ini contoh Pengerjaannya :
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
main()
{
char hari[7]="Jum'at";
cout<<hari;
getche();
}
Ivan Hadiyan TS <[EMAIL PROTECTED]> wrote:
Oh, iya yah, saya lupa kalo bisa pake \ yah uhauhauha :-รพ
Trims banget ya Pa Aryo FYI :-)
SOL
Sincerely,
Ivan Tan
----- Original Message -----
From: "Aryo Sanjaya"
To:
Sent: Monday, March 06, 2006 8:04 PM
Subject: Re: [ITCENTER] Tanya C++
> 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 ^_^
--
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
---------------------------------
Don't get soaked. Take a quick peak at the forecast
with theYahoo! Search weather shortcut.
[Non-text portions of this message have been removed]
--
www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia
Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED]
## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ##
## 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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ITCENTER/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/