[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Help for programming in C
Hi Everyone.
I am learning to program in C and I have problems learning things on linux as
most books have dos in mind. How do I avoid that?
Also, I bought this book, The C Odyssey 3: Unix
Its about c programming for Unix.
Also it had this program which doesn't run on my linux system... though a file
called cruses.h does exist on my system.. I tried giving explicit path too.
#include "curses.h"
main()
{
char buff[31];
initscr();
clear();
flushinp();
addstr("Enter your String :");
refresh();
getstr(buff);
clear();
move(5,30);
addstr(buff);
refresh();
getch();
endwin();
}
Why doesn't this program run. Has the cruses been changed... with effect from
ncruses.
What books should I read...One of my friends was saying that getch() function
act different from dos version.. Is that true... Is there a programming how to
that points out all these differences etc somewhere on the net.
sorry for the long and inchorent mail.
Thanks
Sukrit
Ps... maybe somebody could point me to a nice mailing list on C and related
topics.