Tag: C++

0

C++ Learning Journey Day12

Section 24: C++ 11 Auto auto can detect the data type, so you don’t need to declare the data type by yourself. decltype can capture the data type and use it on the other variables. 1234567891011121

0

C++ Learning Journey Day11

Section 22: I/O Streams Streams Stream is a flow of data or flow of characters. Streams are used for accessing the data from outside program. Here are the types of stream. istream: cin >> os

0

C++ Learning Journey Day10

Section 19: Template Functions and Classes Template Functions and Classes Template is used for multiple data types. Here is an example. 1234567891011121314151617181920212223242526272829303132333435

0

C++ Learning Journey Day9

Section 16: Polymorphism Function Overriding Function overriding is you can redefined the parent function in the child class. You use the same function name of the parent class in child class. Exam

0

C++ Learning Journey Day8

Section 13: Operator Overloading Operator Overloading Operators: +, *, -, (), ++, new, delete… These operators can be used for primary data types, such as int, float… If we want to perform these op

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 +

0

C++ Learning Journey Day1

Section 2: Essential Fundamentals How computer works? CPU have two parts, ALU(Arithmetic Logic Unit) and CU(Control Unit). A computer can perform arithmetic operations like +, -, *, / and logical o