home | bit manipulation | data manipulation | addressing | loops | conditional execution/flags | about the author
useful documents | exercises | ARMulator | forum | links | c/c++ introduction | contact us | other websites by the author
C++ Tutorial
This is a very short introduction to C++ programming, it assumes a basic knowledge of C.A First Program
#include < iostream>
using namespace std;
int main() {
cout << "Anything but Hello World" << endl;
return 0;
}
using namespace std;
int main() {
cout << "Anything but Hello World" << endl;
return 0;
}
This program simply prints out "Anything but Hello World". It is explained below:
- # include < iostream> is a preprocessor directive. It tells the preprocessor to include the contents of iostream header file in the program before compilation.
- int main() is a function. C++ program is a collection of functions. Every program in C++ begins executing at the function main(). Every C++ program has exactly one main function and a collection of other functions.
Click Here for a large range of ARM assembly books at low prices!
ARM Assembly Language - an Introduction by J. R. Gibson
ARM Assembly by William Hohl
ARM Assembly Language - an Introduction by J. R. Gibson
ARM Assembly by William Hohl