Miscellaneous > Programming & Networking
C Programing in Linux
Kintaro:
Uhm, ask him.
SAJChurchey:
Kylix 3 Open Edition is from Borland, and it's a free download w/ a built in C/C++ environment. It should be backwards compatible w/ their headers hopefully.
tazor:
Sounds good.
The programming book I have and all the things at TAFE are for learning Microsoft/Borland style C. I figured that it would be a bit too much to learn both sets of headers at once.
I do plan on learning gcc, but I'll wait until after the exams.
Just for the record, I was using the conio.h header and I also couldn't find an equivalent of clrscr().
Call me an idiot, but then I am related to Food. ;)
slave:
quote:Just for the record, I was using the conio.h header and I also couldn't find an equivalent of clrscr()
--- End quote ---
Use the command
clear();
Make sure you #include <ncurses.h> and compile your program with the -lncurses option, like this:
gcc hello.c -lncurses
Oh, and make sure to issue a refresh() to redraw the screen afterwards.
Hope that helps.
tazor:
Yeah, thanks.
Perhaps I should just send out my source code and then I'll see what changes have to be made.
I did have a problem that one of the programs I made. I converted what I new from borland style to linux style. But when I went to compile it (it didn't show any errors) the compiled program was nowhere to be seen, although it seemed to compile alright.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version