Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

C++ Program Basics Class Notes

Rating
-
Sold
-
Pages
4
Uploaded on
28-10-2021
Written in
2020/2021

Learn with C++ Program Basics. View in full!

Institution
Course

Content preview

C++ Basics

C++ is a powerful general-purpose programming language. It can be used to develop operating systems,
browsers, games, and so on. C++ supports different ways of programming like procedural, object-oriented,
functional, and so on. This makes C++ powerful as well as flexible.

After doing this module, you will be able to:

1. Identify the different parts of the C++ program.
2. Use constants, operators, and expressions correctly in the c++ programs
3. Create a c++ programs successfully



DISCOVER
C++ basics - Discussion & Summary to learn about:

 Parts of a C++ Program
 Global Declarations
 Data Types
 Comments
 Keywords
 The cout and cin Statements
 Constants

DISCUSS
C++ PROGRAMING TUTORIALS
Hello World – First C++ Program
In this guide we will write and understand the first program in C++ programming. We are writing a
simple C++ program that prints “Hello World!” message. Let’s see the program first and then we will
discuss each and every part of it in detail.
Hello World Program in C++

/*
* Multiple line
* comment
*/
#include<iostream>

//Single line comment
using namespace std;

//This is where the execution of program begins
int main()
{
// displays Hello World! on screen
cout<<"Hello World!";

return 0;
}

Written for

Institution
Course

Document information

Uploaded on
October 28, 2021
Number of pages
4
Written in
2020/2021
Type
Class notes
Professor(s)
Nani madriaga
Contains
All classes

Subjects

$4.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
sophiamadriaga

Get to know the seller

Seller avatar
sophiamadriaga
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
9
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions