每日一例

入门第一例:

#include <stdio.h>

main()

{

  printf("hello,world\n");

}

下面一个例子与上面的等价:

#include <stdio.h>

main()

{

  printf("hello,");

  printf("world");

  printf("\n");

}

其中printf函数永远不会自动换行,这样我们可以多次调用它以分阶段得到一个长的输出行。

猜你喜欢

转载自www.cnblogs.com/TheFly/p/11802200.html