Home

0

Mac 開發環境建置 2022

內建工具 Xcode 到 App Store 下載 記得要打開 Xcode,並且同意服務條款 調整滑鼠速度 查看滑鼠速度 defaults read -g com.apple.mouse.scaling 設定滑鼠速度 defaults write -g com.apple.mouse.scaling 7 套件 & 指令 zsh 官網網站 安裝指令 sh -c "$(

0

Golang 快速學習自我挑戰 Day14

Section14: Methods: OOP with Go Methods:Enhance types with additional behavior Methods Value Receivers Pointer Receivers Non-Struct Methods Interface Type Assertion Type Switch Empty Interface

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

0

Golang 快速學習自我挑戰 Day13

第十三章:Functions, Pointers 和 Addressability 學習 Function 的基礎 Function 用 func 這個 keyword,init 和 main 是特殊名字,不用在 Function 的名字使用它們。 一個 Function 可以有零到多個輸入參數,func sum(a int, b int) {} 和 func sum(a