[程式] printf的換行

  • 0
printf("If you find the string too long, \
use the backslash to tell the compiler \
it's still the same one. \n");
printf("So you will get it. \n")

--- Result ---


If you find the string too long, use the backslash to tell the compiler it's still the same one.
So you will get it.


--- PS ---
\  反斜線用來告訴compiler這些都是同一行
   只有人看起來有差,對電腦來說還是同一行

\n 告訴電腦真的要換行(游標往下一行移)了

沒有留言 :

張貼留言