Hello There,
Sunday, June 02, 2002, 10:17:03 AM, you wrote:
NK> //hello.c
NK> #include <ncurses.h>
NK> int main() {
NK> initscr();
NK> printw("hello");
NK> refresh();
NK> endwin();
NK> return 0;
NK> }
NK> terus saya compile tanpa error: gcc hello.c -lncurses -o hello
NK> outputnya ("hello") saya jalankan, ternyata ndak mencetak apa2. blank
NK> klirunya dimana?
NK> - nk -
Saya coba bisa tuh .....
berikut yang saya lakukan
1. Saya locate file yang berhubungan dengan ncurses.h
kalpin@genesis:~ > locate ncurses.h
/usr/doc/susehilf/pak/paket_doinst_ncurses.html
/usr/doc/susehilf/pak/paket_inhalt_ncurses.html
/usr/doc/susehilf/pak/paket_ncurses.html
/usr/doc/susehilf/pak_e/paket_doinst_ncurses.html
/usr/doc/susehilf/pak_e/paket_inhalt_ncurses.html
/usr/doc/susehilf/pak_e/paket_ncurses.html
/usr/include/ncurses.h
2. Saya compile hello.c
kalpin@genesis:~ > gcc hello.c -lncurses -o hello
kalpin@genesis:~ >
3. Saya jalankan hello
kalpin@genesis:~ > ./hello
hello
Normal kok.
--
Ask, and it shall be given you;
seek, and ye shall find;
knock, and it shall be opened unto you.
Best regards,
Kalpin mailto:[EMAIL PROTECTED]
--
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3