Tutorial Categories
Tools and Software
Site Search


Advanced Search
Tutorial Options
Popular Tutorials
  1. Photoshop Concept Car Makeover
  2. Photoshop Man Of Fire Part I
  3. Photoshop Man Of Fire Part II
  4. Photoshop Magic Marker Effect
  5. Photoshop Car Makeover Part II
No popular tutorials found.
Popular Authors
  1. Cory Crampton
  2. Daniel Phillips
  3. tanmay goswami
  4. Rails Forum
  5. Brendan Horverson
  6. CodeCrunch Tutorial Bot
  7. PhotoshopBee .com
  8. Jamie Lewis
  9. Nick Cote
  10. Luther Avery
No popular authors found.
 »  CodeCrunch  »  Programming  »  C++  »  Starting C++
Starting C++
By Daniel Phillips | Published  06/28/2006 | C++ | This tutorial viewed 743 times
Easy Guide To C++

Starting C++ - 01

To follow this perfectly you need:-

- A C++ Compiler
- Knowledge in programming is useful


Right, lets look at some code:

#include <iostream>

using namespace std;

// this is a comment, this is not read by the compiler.
// namespaces will be explained later.

int main() {

cout << "Hello World!" << endl;

return 0;

}

 

Okay, now, lets look at it line by line:-

#include <iostream>

Without this line, none of the code would work, this includes the C++ code that makes the C++ program work.

using namespace std;

As the comments below state, namespaces will be done in later articles

int main() {

This line, starts our program.




Comments