免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1075 | 回复: 8
打印 上一主题 下一主题

請教各位一個printf的方法,謝謝! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-22 14:53 |只看该作者 |倒序浏览
各位好,
我想請教一個很菜的printf方法, 我有一小段的文章, 想用printf顯示出來, 現在我只有用幾個printf來顯示, 有沒有更快更好的方法使用一個printf來顯示這一小段文章1呢? 請各位指教. thanks.


  1. printf("Steps on how to use this program.\n");
  2. printf("1. Enter you name and other user's informations,\n");
  3. printf("2. after that, you will enter a valid url for updating,\n");
  4. printf("3. during update, need to download a code for your own used.\n");
复制代码


由於這段小文章用了4個printf, 有沒有方法可以使用一個printf來完成呢? 謝謝.

论坛徽章:
2
亥猪
日期:2014-03-19 16:36:35午马
日期:2014-11-23 23:48:46
2 [报告]
发表于 2005-08-22 14:56 |只看该作者

請教各位一個printf的方法,謝謝!

printf("Steps on how to use this program.\n1. Enter you name and other user's informations,\n2. after that, you will enter a valid url for updating,\n3. during update, need to download a code for your own used.\n";

论坛徽章:
0
3 [报告]
发表于 2005-08-22 15:06 |只看该作者

請教各位一個printf的方法,謝謝!

printf("Steps on how to use this program.\n"
        "1. Enter you name and other user's informations,\n"
        "2. after that, you will enter a valid url for updating,\n"
        "3. during update, need to download a code for your own used.\n";

论坛徽章:
0
4 [报告]
发表于 2005-08-22 15:22 |只看该作者

請教各位一個printf的方法,謝謝!

謝謝各位.....

论坛徽章:
0
5 [报告]
发表于 2005-08-22 16:31 |只看该作者

請教各位一個printf的方法,謝謝!

自己写一个,把一段分成4个printf输出。

论坛徽章:
0
6 [报告]
发表于 2005-08-22 17:01 |只看该作者

請教各位一個printf的方法,謝謝!

我还觉得四个printf更简单

论坛徽章:
0
7 [报告]
发表于 2005-08-22 17:35 |只看该作者

請教各位一個printf的方法,謝謝!

[quote]原帖由 "xiaonanln"]我还觉得四个printf更简单[/quote 发表:

若真的小量, 可以用printf, 但若上幾十行的那就很痛若了....

论坛徽章:
0
8 [报告]
发表于 2005-08-23 00:19 |只看该作者

請教各位一個printf的方法,謝謝!

数十行的话,不是一样吗?
先写个printf("";然后拷贝个十几个不就行了?

论坛徽章:
0
9 [报告]
发表于 2005-08-23 02:05 |只看该作者

請教各位一個printf的方法,謝謝!

原帖由 "xiaonanln" 发表:
数十行的话,不是一样吗?
先写个printf("";然后拷贝个十几个不就行了?

晕...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP