C++ Fundamentals Speaker: Jason V. Castellano
C++ Fundamentals
Speaker: Jason V. Castellano
is a low-level programming language developed by Bjarne Stroustrup at Bell Labs. C++ adds object-oriented features, C. C++ is one of the most popular programming language for graphical applications, such as those that run in Windows and Macintosh environments.
What is C++?
Best application written in C++
• Mozilla
• Adobe Systems
• Winamp Media Player
O.S written in C++ programming language.
• Apple – OS X
• Microsoft
#include “iostream.h”#include “conio.h”Using namespace std;
int main() {
cout<< “ Hello world ”;
getch();return 0;
}
Basic C++ Syntax // my first program in C++
#include “iostream.h”#include “conio.h”Using namespace std;
Preprocessor- a computer program that modifies data to conform with the input requirements of another program.
Basic C++ Syntax
Basic C++ Syntax
main() function
it is the function called when the program is run. The execution of all C++ programs begins with the main function
int main() { }
Basic Input and Output
Cout<< - Console Out is a standard output stream
cout<<“Hello Word”;Ex:
Output: Hello World
Basic Input and Output
Cin>> - Console in is a standard inputstream
cout<<“Enter name:”;Ex:
cin>>name;
Fundamentals Data Types
int type used to define numeric variables holding whole numbers.
It defines a character primitive type
float is a single precision (32 bit) floating point data type
is a double precision (64 bit)
char
float
double
string generally means an ordered sequence of characters
string
Let’s build a project:
Student’s Information Project name:
Thank you !!!