# 排版 程式碼的可視性非常重要。 如: ```c= #include<stdio.h> int main(){ int a=1; int b=2; if(a==1) { a=a+10; }else{ a+a+5; } b=a+3; printf("%d%d",a,b); } ``` 正常來說: ```c= #include<stdio.h> int main(){ int a=1; int b=2; if(a==1){ a=a+10; }else{ a+a+5; } b=a+3; printf("%d%d",a,b); } ``` 教學 : http://www.ncyu.edu.tw/files/site_content/cc/coding%20style.pdf * `Tab` 可以縮排 * 程式碼要對齊 * 大括號內的程式碼要縮排 ...等等 ###### tags: `中和高中`
×
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