Chapter 2, Introduction
to C++ Programing
The Sturcture of Basic C++
Program
The lines start with # are processed by th...
Chaper 9 Struct and Class
Class
Reference: link1
link2
What is class?
Class is a template with Data members and Me...
Chapter 3, Control
Statement_1
Control Structure
The sequence structure
The selection strcture
The repetition structur...
Chapter 4, Control
Statement_2
do...while
123do{}while;(condition)
do...while always check the continuation after the c...
Chapter 5
Functions and Introduction to Recursion
Cmath
1#include <cmath>
Defining Our Own Fucntion
Exapmple(s...
Chapter 6 Arrays, Strings
and Vectors
Array
If there are not enough initializer for a given array, the remaining
elemen...
STL(Standard Template
Library)
Vector
用法基本跟array一樣,可以把它想成動態陣列。
宣告時可以不用確定大小
宣告一向量時,所有範圍內的值會被初始成0。
可以使用'=='比較兩向量時
使用'=...
補充資料
Literal Constant
Ex: 1234567#include <iostream>using namespace std;int main(){ cout<<75<<" "<...
大家好,我是Shih
Jiun,目前就讀彰化師範大學電子工程學系大一,本網站的目的是為了對大學四年的課堂內容及個人手做小專題做些紀錄及分享,歡迎你的到來!