C++ Tutorial For The First Program

C++ Tutorial

Quiz :

1) What differs compiler from interpreter ?
2) Give the steps involved in the normal development cycles

Exercises :

1) Create a c++ program that displays your name.
2) Find the bug in the following program :

#include <iostream>

int main ();
{

    std::cout << "I love C++";

    return 0;
}


Solution of the Quiz :

1) Interpreters turn program instruction directly into actions by reading through the source code. Compilers create an executable program by translating the source code that can be run later.
2) Editing source code, compiling, linking, running and when required repeat it.

Solution of the Exercises :

1) A c++ program that displays name :

#include <iostream>

int main ()
{

    std::cout << "Mohammed Homam";

    return 0;
}

2) The main function is terminated by the semicolon.

Check out this stream