Today I’m going to write good c c++ tutorials
The tutorials are mine showing my experience in c c++
i my be using some examples rote in some books (if i do i will pot a link or name of the book)
And all the tutorials are at the main topic
I don’t know how my topic count in this case because all I’m going to do is updates the same topic
Any way lets just tray and see
First sings first in order to compile your code you need compiler
That compiler is an application that converts your code from human readable code to
Binary cod or machine code
There is allot of compilers out their
(I will post some links soon)
The first code you might wan do is simple
And do some actual work
Let’s start with the oldest and greatest and simplest code
Hello world
You can get that code from almost any compiler as a simple project
CODE
// hello world.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
//
#include <stdio.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
Now what is that code
Let’s explain
Line after line
1-#include <stdio.h>
You tell see that you want to use the input output library
In English you can use the keyboard to input and the
Screen to output
That’s all
2-int main(int argc, char* argv[])
This is the main function
You cant compile your code without this function
I will explain it later
3-printf ("Hello World!\n");
[To be continuing ……]


