// longstrg.cpp : 定义控制台应用程序的入口点。 // /* 时间:2018年06月19日 22:43:45 代码:程序清单4.14_longstrg.c程序_《C Primer Plus》P77 目的:实现长句字符串输出的三种方法 */ #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { printf("Here's one way to print a "); printf("long string.\n"); printf("Here's the another way to print a \ long string.\n"); /* 切勿让本行的第一单词缩进,否则会产生相应的空格数 */ printf("Here's the newest way to print a " "long string.\n"); /* ANSI C */ getchar(); return 0; } /* 在VS2010中运行结果: ----------------------------------------- Here's one way to print a long string. Here's the another way to print a long string. Here's the newest way to print a long string. ------------------------------------------------ google 翻译结果: 这是一种打印长字符串的方法。 这是另一种打印长字符串的方法。 这是打印长字符串的最新方法。 ------------------------------------------------ 总结: 1>.使用转义符 \ 时,接下句首行时切勿缩进; 2>.切勿在句中(即在双引号中间进行折行); ------------------------------------------------ *
代码:程序清单4.14_longstrg.c程序_《C Primer Plus》P77
原创
©著作权归作者所有:来自51CTO博客作者广西梵音的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章