C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 5890|回复: 1

[App编程/平台开发] [转帖] 银河学院教程——Linux入门11(转帖) [复制链接]

军衔等级:

亚星游戏官网-yaxin222  上等兵

注册:2007-6-11
发表于 2007-6-11 14:24:00 |显示全部楼层
<p><span style="FONT-SIZE: 9pt;"><font face="宋体">例<span lang="EN-US">2</span>:显示一个文件的内容,但显示之前先清屏,并且在显示器的最下方显示完整的百分比。<span lang="EN-US">
                                        <p></p></span></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">$ more - dc example1.c <p></p></font></span></p><p><span style="FONT-SIZE: 9pt;"><font face="宋体">实行该命令后,先清屏,然后显示文件<span lang="EN-US">example.c</span>的内容。<span lang="EN-US">
                                        <p></p></span></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/*-------------------------------------------*/ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* example1.c */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/*-------------------------------------------*/ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* author f opus.BBS@BBS.cs.nthu.edu.tw */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* target f BBS main/login/top-menu routines */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* create f 99/10/23 */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* update f 99/12/15 */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/*-------------------------------------------*/ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">#define _MAIN_C_ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">#inc1ude &lt; BBS. h &gt; <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">jmp_buf byebye; <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">int talkrequest=NA; <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">static uschar Enter_uflag i <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">#ifdef SHOW_IDLE_TIME <p></p></font></span></p><p><font face="宋体"><span lang="EN-US" style="FONT-SIZE: 9pt;">char fromhost</span><span style="FONT-SIZE: 9pt;">( )<span lang="EN-US">; <p></p></span></span></font></p><p><font face="宋体"><span lang="EN-US" style="FONT-SIZE: 9pt;">--More- </span><span style="FONT-SIZE: 9pt;">(<span lang="EN-US">3%</span>)[<span lang="EN-US">亚星游戏官网-yaxin222ress space to continue , </span>‘<span lang="EN-US">q</span>’<span lang="EN-US"> to quit .</span>]<span lang="EN-US">
                                        <p></p></span></span></font></p><p><span style="FONT-SIZE: 9pt;"><font face="宋体"> <span lang="EN-US">
                                        <p></p></span></font></span></p><p><span style="FONT-SIZE: 9pt;"><font face="宋体">例<span lang="EN-US">3</span>:显示一个文件的内容,要求每十行显示一次,且显示之前先清屏。<span lang="EN-US">
                                        <p></p></span></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">$ more - c - 10 example1.c <p></p></font></span></p><p><span style="FONT-SIZE: 9pt;"><font face="宋体">实行该命令后,先清屏,然后将以每十行每十行的方式显示文件<span lang="EN-US">example.c</span>的内容。<span lang="EN-US">
                                        <p></p></span></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/*-------------------------------------------*/ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* example1.c */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/*-------------------------------------------*/ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* author f opus.BBS@BBS.cs.nthu.edu.tw */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* target f BBS main/login/top-menu routines */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* create f 99/10/23 */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/* update f 99/12/15 */ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">/*-------------------------------------------*/ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">#define _MAIN_C_ <p></p></font></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><font face="宋体">inc1ude &lt; BBS. h &gt; <p></p></font></span></p><p><font face="宋体"><span lang="EN-US" style="FONT-SIZE: 9pt;">--More- </span><span style="FONT-SIZE: 9pt;">(<span lang="EN-US">3%</span>) <span lang="EN-US"><p></p></span></span></font></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><p><font face="宋体">&nbsp;</font></p></span></p><p><span lang="EN-US" style="FONT-SIZE: 9pt;"><p><font face="宋体">&nbsp;</font></p></span></p><p style="MARGIN-BOTTOM: 0pt; TEXT-INDENT: 17.85pt;"><span style="FONT-SIZE: 9pt;"><font face="宋体">本文转自:<span lang="EN-US"><a href="http://www.newstu.org/">www.newstu.org</a></span>   银河学院新大学教育<span lang="EN-US">N.C.E</span>计划<span lang="EN-US"><p></p></span></font></span></p><p style="MARGIN-BOTTOM: 0pt; TEXT-INDENT: 17.85pt;"><span style="FONT-SIZE: 9pt;"><font face="宋体">咨询热线:<span lang="EN-US">027-51788877</span>    咨询<span lang="EN-US">Q Q:495492526</span> <span lang="EN-US">731330728<p></p></span></font></span></p><p style="MARGIN-BOTTOM: 0pt; TEXT-INDENT: 17.85pt;"><span style="FONT-SIZE: 9pt;"><font face="宋体">咨询<span lang="EN-US">Email:yinheedu509@163.com</span>学院地址:武汉市洪山区武珞路<span lang="EN-US">720</span>号<span lang="EN-US"><p></p></span></font></span></p>

举报本楼

本帖有 1 个回帖,您需要登录后才能浏览 登录 | 注册
您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-11-9 00:56 , Processed in 0.302873 second(s), 16 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图