Pages

Wednesday, August 11, 2010

Introduction

This is for those people who want to learn programming in C++ and do not necessarily have any previous knowledge of other programming languages. Of course any knowledge of other programming languages or any general computer skill can be useful to better understand this tutorial, although it is not essential.

It is also suitable for those who need a little update on the new features the language has acquired from the latest standards.


All C++ compilers support the compilation of console programs. Check the user's manual of your compiler .


STRUCTURE OF A PROGRAM:


Probably the best way to start learning a programming language is by writing a program. Therefore, here is our first program: 


1
2
3
4
5
6
7
8
9
10
// my first program in C++

#include <iostream>
using namespace std;

int main ()
{
  cout << "Hello World!";
  return 0;
}
Hello World!

No comments:

Post a Comment