|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I'm just starting out learning programming, and I'm trying to learn a little about each language. The syntax of C is really weird, can someone explain what all of it means? Like for this:
#include < stdio.h> void main() { printf("\nHello World\n"); } What does all of that mean, and what is it's purpose in the program? |
| Sponsored Links |
|
|
|
|||||
|
Code:
#include < stdio.h > // this line tells the preprocessor to include the header file that will tell your program how to handle input/output
void main() //this is the start of function main. It is where processing in every program starts
{
printf("\nHello World\n"); //This uses the output function (from stdio.h) to go to the next line, print "Hello World", then go to the next line
}
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
|
|||
|
dirkfirst, dont laugh at someone who is trying to learn.
Sionofdarkness, there are many books at your local library you can read to learn from the basics c and cpp. Or, search online for some tutorials, although a book is probably better.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
| Sponsored Links |
|
|
|
|||||
|
Following up on that: I recommend downloading Thinking in C++
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
|
|||||
|
Quote:
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
Also, when learning it is very easy to not know what concepts need to be worried about first. There's a lot of jargon in programming, and it can be very hard to know where to start in the learning process. Some things are easily answered on Google or Wikipedia, but with the many layers of interdependence in concepts, it can be hard to know what's what.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL syntax error | reachpradeep | Database & Database Programming | 2 | 10-11-2007 12:29 PM |
| C- Syntax to allocate Global variables to consecutive memory locations | techie82 | C and C++ | 1 | 04-09-2007 12:42 PM |
| Finding Syntax Errors | Sionofdarkness | Python | 1 | 01-06-2007 06:33 AM |
| Syntax Stuff | Kaabi | General Programming | 3 | 08-21-2006 04:34 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |