C/C++ - two questions...
I want to learn C and C++ but i do not know where to start... I mean... I'am using slackware 10.1...
1. do i need any special program to write the code?? or can I use any text editor and save it as *.c ??? 2. How do I compile the code?? and How to run it?? any help would be appreciated... |
Your questions are not specific to Slackware, you should post this to the programmer's forum.
But anyway: 1: any 2: gcc <source.c> should get you started. |
sorry... didn't know....
thankx 4 the answer... |
And C++ code can be compiled with g++, e.g.
g++ hello.cpp It is usual to at least specify an output file (or the output file will be a.out): gcc -o hello hello.c g++ -o hello hello.cpp If I may give you an advice: if you start C++ programming it may be interesting to look at the Qt toolkit. In contrast to what many people believe this is not just a widget toolkit, but it is a fairly complete class library that has classes for regular expressions, I/O, threads, XML, etc. plus some STL-like container classes. Qt is available from the kde diskset, and includes excellent documentation (via assistant) and a GUI designer (designer). There also is a very good book in PDF format: http://phptr.com/content/images/0131...hette_book.pdf |
All times are GMT -5. The time now is 03:43 AM. |