Coding Style === ```c= void do_something() { ... #ifdef CONFIG_WORK_HARD do_work_fast(); #else do_work_at_your_leisure(); #endif ... } ``` 上述寫法是不好的,應該改成下方 ```c= #ifdef CONFIG_WORK_HARD void do_work() { /* Get going, fast! */ ... } #else void do_work() { /* Relax, take it easy */ ... } #endif void do_something() { ... do_work();/* Work hard or not, depending on configuration */ ... } ```
×
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