C++ Learning Journey Day7
Section 12: Introduction to OOPS Principles of Object-Oriented Programming Abstraction: We use class to abstract the object, and put data and function inside the class. We don’t need to see content
Section 12: Introduction to OOPS Principles of Object-Oriented Programming Abstraction: We use class to abstract the object, and put data and function inside the class. We don’t need to see content
Section11: Functions Introduction return-Type Function-name(Parameter List). Should not use cin and cout inside function. Add function example. 12345678910111213141516171819202122#include <iostr
Section 10: String Class String You need to include string library to use string. Also, you can use getline to get the string from the user input. 12345678910111213141516#include <iostream>#i
Section 9: Pointers Introduction Two types of variables. data variable. For example, int x = 10;. address variable. For example, int *p; p = &x; Example 1234567// x, value 10, address 200/20
Section 7: Loops Loops - Iterative Statement while 123while (<condition>) { process;} do while 123do { process;} while (<condition>) Print the numbers example.
Section 5: C++ Basics Compound Assignment +=, -=, *=, /=, %=. &=, |=, <<=, >>=. example 12345678910int a = 10, b = 5, c = 15;int sum;sum = sum + a + b + c;// simplifysum += a + b +