• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Class notes

operation in C++

Document preview thumbnail
Preview 1 out of 4 pages

**C++ Programming Course Description** This course provides a complete introduction to C++ programming language. Students will learn the fundamentals of programming, including variables, data types, operators, conditional statements, loops, functions, arrays, pointers, and object-oriented programming concepts. The course covers important topics such as classes, objects, inheritance, polymorphism, constructors, file handling, and Standard Template Library (STL). Through practical examples and programming exercises, students will develop problem-solving skills and learn how to create efficient C++ programs. By the end of this course, students will have a strong foundation in C++ programming and will be able to design, develop, and debug basic to advanced applications.

Content preview

C++ Notes �
Topics 3 – 7 (Operators to Arrays)


Topic 3: Operators in C++

An operator performs an operation on one or more values (called operands).

✎Types of Operators
Type Symbols Example

Arithmetic + - * / % a + b, a % b

Relational == != > < >= <= a == b

Logical && || ! a>0 && b>0

Assignment = += -= *= /= a += 5

Increment/Decrement ++ -- a++, --b



✎Example
int a = 10, b = 3;
cout << a + b; // 13
cout << a % b; // 1 (remainder)
cout << (a > b); // 1 (true)

★ Remember: % (modulus) only works with integers, not float/double.



Topic 4: Control Statements (if-else, switch)

Control statements decide which block of code runs, based on a condition.

✎if / else if / else
if (marks >= 90) {
cout << "Grade A";
} else if (marks >= 70) {

Document information

Uploaded on
July 31, 2026
Number of pages
4
Written in
2025/2026
Type
Class notes
Professor(s)
N/a
Contains
All classes
$8.19

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

Sold
0
Followers
0
Items
3
Last sold
-



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