LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   start programing (https://www.linuxquestions.org/questions/linux-newbie-8/start-programing-206522/)

munkie_poo 07-18-2004 06:34 AM

start programing
 
Hi,

I while back I went on a course learning c++, Ive probably forgot most of it now.

The place I studied at used Borland turbo (I think) the lovely blue dos environment..urghh
I learn pretty much the basics and wrote programs that ran under dos, no win GUI's or anything.

Is it much different programming in linux? and could anyone point me in the direction of good sites to vist, to again fill the old grey matter full of pains.

I unsterstand the syntax will be pretty much exact, but are the functions and whathaveyou the same?

thanks

Error1312 07-18-2004 10:58 AM

Linux programming is not that different. Instead of running your programs in a DOS window, it would run in a terminal (looks the same as DOS, but is much more powerful). If you want a nice looking programming environment for C and C++ you should install KDevelop (mostly standard installed). The syntax is, like you said, not that different for most (simple) programs. The famous 'Hello world' example ran very smooth for me without changing the code.

Here are some good sites: www.kdevelop.org (for working with kdevelop)
www.techtutorials.info/liprog.html (The linux programmers guide)

The C or C++ code from most tutorial sites should probably work quite smooth on Linux without having to change to much. And I think KDevelop has some programming tutorials build in too.

Good luck and a lot of fun while programming.;)

SciYro 07-18-2004 11:31 AM

http://www.delorie.com/gnu/docs/glibc/libc_toc.html

for info on glibc (the standard c lib in most linux distros, has support for most popular UNIX specifications

don't forget the other libs, ncurses for all your text based GUI needs (unless you want something a bit more powerful, then use glibc's termios.h and learn up on file descriptors (as thats how you talk to the terminal)

theres just soo many libs, better search around for one if you plan to do a complicated project (that way you can let the lib do the more complicated stuff, like speech recognition


All times are GMT -5. The time now is 12:11 AM.