Daily Archives: April 22, 2018

comment tips

多行註解時 有時候只是暫時不需要 /* int x; // blah blah */ 要取消掉,最簡單的方式是直接加上// ///* int x; // blah blah //*/ 這樣可以方便以後加回來,因為如果是直接刪掉/*, */ 加回來時常常會忘記要在哪裡開始結束當然 #if 0, #if 1這樣也是一種常見的方式 或是 if(0) {}

Posted in Tips | Leave a comment