Top Banner
C++ Fundamentals Speaker: Jason V. Castellano
12

C++

Apr 16, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: C++

C++ Fundamentals

Speaker: Jason V. Castellano

Page 2: C++

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++?

Page 3: C++

Best application written in C++

• Mozilla

• Adobe Systems

• Google

• Winamp Media Player

Page 4: C++

O.S written in C++ programming language.

• Apple – OS X

• Microsoft

Page 5: C++

#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++

Page 6: 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

Page 7: C++

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() { }

Page 8: C++

Basic Input and Output

Cout<< - Console Out is a standard output stream

cout<<“Hello Word”;Ex:

Output: Hello World

Page 9: C++

Basic Input and Output

Cin>> - Console in is a standard inputstream

cout<<“Enter name:”;Ex:

cin>>name;

Page 10: C++

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

Page 11: C++

Let’s build a project:

Student’s Information Project name:

Page 12: C++

Thank you !!!