C++ Lecture 1
C++ Lecture 1
Course Lecturer:
DR ABDUL-WAHAB Nawusu Yakubu
Example:
If you saved a C++ program in the file
named first, then its complete name is
first.cpp.
#include<iostream>
int main(){
std::cout<<“Amaraaba, TaTU!”;
return 0;
}
• Errors Logs
The error log displays all the error found in a source code.
There are different types of errors, or bugs, which can
prevent computer programs from working in the way they
should.
//Program statements
return 0;
}
• It tells the compiler and the linker that the program will need
to be linked to an external library of routines that handle
input from the keyboard and output to the screen
(specifically the cin and cout statements).
• Note: Comments are for the reader, not for the compiler.
i. Single-line comment
ii. Multiple-line comment