Archive: 2021/10

0

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

0

C++ Learning Journey Day6

Section11: Functions Introduction return-Type Function-name(Parameter List). Should not use cin and cout inside function. Add function example. 12345678910111213141516171819202122#include <iostr

0

C++ Learning Journey Day5

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

0

C++ Learning Journey Day4

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

0

C++ Learning Journey Day3

Section 7: Loops Loops - Iterative Statement while 123while (<condition>) { process;} do while 123do { process;} while (<condition>) Print the numbers example.

0

C++ Learning Journey Day2

Section 5: C++ Basics Compound Assignment +=, -=, *=, /=, %=. &=, |=, <<=, >>=. example 12345678910int a = 10, b = 5, c = 15;int sum;sum = sum + a + b + c;// simplifysum += a + b +