How to start
How can I start programming?
I would like to start with C, C+ etc etc. Is there a program I need to start? |
Use g++ on the command line for Standard C++ and gcc on the command line for Standard C console applications. Most books you buy on C and C++ will focus on the console. When you want to later build GUI applications than you can use Widget libraries such as GTK+ or QT. Or you can even use Java Middleware on Linux < http://members.shaw.ca/trollking >.
|
Learning C is easy.
Every programmer starts programming with this program. The program is very simple. Just to print a line. #include <stdio.h> int main() { printf("Hello, world\n"); return 0; } Type it out in any text editor and save it as any file name with extension ".c" say, "first.c". At the command prompt, type gcc first.c -o first This will compile your program and produce the executable file called "first". Then type ./first to run the program. You will see the output "Hello, world" printed in the terminal. There are a lot of resources on the C programming. You just search "Linux C Programming" in google and you will get tons of results. Just browse through and pick a longer and complete guide you feel confortable with it. If you want solid hard copy, just print it out chapter by chapter. I think you don't even need to buy a book to start C programming. So many resources and ebooks on the net. |
It worked, so does this mean I wrote my first program in C?
|
no, it means you copied your first c program!
|
Quote:
Yeah! You wrote your first C program!. This is the starting point. Every C programs are base on this. You might want to browse through the net, find a tutorial and try to understand it. It's pretty easy. |
thanks guys
|
All times are GMT -5. The time now is 06:55 PM. |