给我一些提示 [英] give me some tips
问题描述
输出结尾没有换行符真的有问题吗?我以前从来没有学过这么多。
所以我想知道一些关于完美编写程序的技巧。可以给b
$ b有人给我一些很难从教科书中学到的技巧或
容易被忽略?
非常感谢你。
Yuri CHUANG写道:
输出结尾没有换行符真的有问题吗?我以前从来没有学到这一点。
所以我想知道关于完美编写程序的一些技巧。可以给任何人提供一些很难从教科书中学到的技巧或者>很容易被忽略?
非常感谢。
http://c-faq.com/
-
pete
>
好吧,如果你在printf参数的末尾放置了\ n来实现
,那么你的输出看起来会好得多。
Albert <在2006年3月12日星期日06:18,阿尔伯特认为(
< 11 ********)
**************@v46g2000cwv.googlegroups .com>):
好吧,如果你练习<将\ n放在printf参数的末尾等。
Albert
请引用谁和你回复的内容。阅读并遵循建议
来自< http://cfaj.freeshell.org/google/>。
返回你的回复...... ;看起来好多了真的与
无关(我们都知道,美丽在be(er)持有者眼中)。
什么有*与它有关的一切*如果你没有用新行终止你的
输出,或用`fflush`刷新它,那么编译器不需要
提供/任何/输出。它在标准中,如果
你还在想为什么。
-
BR,Vladimir
任何加薪后,您将在
月结束时比以前少花钱。
"No newline at the end of your output" is really a problem? I''ve never
learned that before.
So I desire to know some tips about writting a program perfectly.Can
anyone give me some tips which are hardly learned from textbook or
easily ignored?
Thank you very much.
Yuri CHUANG wrote:
"No newline at the end of your output" is really a problem? I''ve never
learned that before.
So I desire to know some tips about writting a program perfectly.Can
anyone give me some tips which are hardly learned from textbook or
easily ignored?
Thank you very much.
http://c-faq.com/
--
pete
Well, your output will look much better if you have a practice of
putting \n at the end of a printf argument, etc.
Albert
On Sunday 12 March 2006 06:18, Albert opined (in
<11**********************@v46g2000cwv.googlegroups .com>):
Well, your output will look much better if you have a practice of
putting \n at the end of a printf argument, etc.
Albert
Please quote who and what you''re replying to. Read and follow advice
from <http://cfaj.freeshell.org/google/>.
Back to your reply... "look much better" really has nothing to do with
this (as we all know, the beauty is in the eye of the be(er)holder).
What has *everything* to do with it is that if you do not terminate your
output with new line, or flush it with `fflush`, the compiler is not
required to provide /any/ output whatsoever. It''s in the Standard, if
you''re still wondering why.
--
BR, Vladimir
After any salary raise, you will have less money at the end of the
month than you did before.
这篇关于给我一些提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!