--- tags: C++複習講義 --- # C++上機考複習講義 -- by [DZIF22nd:computer:](https://www.instagram.com/dzif_22nd_/?hl=zh-tw) # 回饋表單 <font color= #f00 font size= 10>連結:</font> [GoogleForm](https://forms.gle/q1G7s9nxVFqwv1vi7) ## 語法複習 - [if](https://hackmd.io/@dzif22nd/ifstatement) - [for](https://hackmd.io/@dzif22nd/forloop) - [while](https://hackmd.io/@dzif22nd/whileloop) ## 108考古題 - [A卷](https://hackmd.io/@dzif22nd/A) - [B卷](https://hackmd.io/@dzif22nd/B) ## 109考題 - [C卷](https://hackmd.io/@dzif22nd/C) - [D卷](https://hackmd.io/@dzif22nd/D) ## 格式化輸出&程式架構 * 格式化輸出 <font color=#f00>\t</font> tab <font color=#f00>\n</font> 換行 ``` cout<<"\tH106\t03\t吳佩芸\n\tA卷\t第一題\n;" ``` * 程式架構 ```cpp= while(true){ cout<<""; //格式化輸出你的班級座號姓名、a or b卷、第幾題 cout<<""; //輸出題目 cin>>n; //輸入數值 if(){ //判斷數值是否合理 } else{ } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up