diff --git a/c04_string/longstrg.c b/c04_string/longstrg.c new file mode 100644 index 0000000..c0d5af2 --- /dev/null +++ b/c04_string/longstrg.c @@ -0,0 +1,14 @@ +/* longstrg.c - 打印较长的字符串 */ +#include + +int main(void) +{ + printf("Here's one way to print a "); + printf("long string.\n"); + printf("Here's another way to print a \ +long string.\n"); // 注意:如果这行前面带了缩进,那么缩进也会被打印出来 + printf("Here's the newest way to print a " + "long string.\n"); + + return 0; +} \ No newline at end of file