易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux下完成的一个作业程序

文档创建日期:2010-02-19
   001    // P174: 2.编程题 (9)将数组a中相同元素只保留第一个,其余删除。
   002   
   003    // The beginning of C program: test06-09.c.
   004   
   005    // Header files included.
   006    #include <stdio.h>
   007    #include "head06-09.h"
   008   
   009    // Macro definition.
   010    #define MAX_SIZE 100
   011   
   012    // Main function's declaration.
   013    int  main ( void )
   014    {
   015        int     i=0,  n=10;
   016        float   list[MAX_SIZE];
   017        printf ( "Please input 10 float numbers for the list: " );
   018        for ( i=0; i<n; i++ )
   019            scanf  ( "%f", &list[i] );
   020        for ( i=0; i<n; i++ )
   021            list[i] = rounding (list[i]);
   022        select_sort (list, n);
   023        if ( delete_RptElmt (list, &n) == 0 )
   024            return  (1);
   025        printf ( "The new list is:\n" );
   026        for ( i=0; i<n; i++ )
   027&n


相关文档:

linux下配置静态路由

Internet------(eth1)router1(eth2)------(eth1)router2(eth0)------(eth0)router3(eth1)------(eth0)pc
上面就是我的网络拓扑结构,其中路由器1是用来连接外部网络的一台linux机器,图中所有路由器都是普通的pc机,这些pc都安装了ubuntu桌面系统,除了最右边的pc,其余的pc都装了3张网卡(其中一张备用)。
由于Debian系 ......

Linux下常用的关机实例

Linux下关机最要有以下方法,我想这些方法足以满足你的需要:
[root@localhost /]# shutdown [-t秒] [-arkhcncfF] [时间] [提示信息]
[root@localhost /]# shutdown -h 10 'I will shutdown after 10 mins'
-t sec : -t 后加秒数,即‘过几秒钟后关机’的意思。
-k : 不要真的关机,只是发送提示信息。
......

Linux版本一览



Linux
版本
一览
 
 
Linux
是一套免费使用和自由传播的类
Unix
操作系统。我们通常所说的
Linux
,指的是
GNU/Linux
,即采用
Linux
内核的
GNU
操作系统。由于
Linux
是一个内核,它只是操作系统的核心,负责控制硬件、管理文件系统、程序进程等。然而一个完整的操作系统不仅仅是内核 ......

8259A芯片中断号与linux 系统中断号的对应关系

ICW2 用于设置芯片送出的中断号的高5位。什么意思呢,就是说从中断控制器发出的中断信号的高5位就是在ICW2里设置的。
在linux 0.11里系统把主片的ICW2设置为0x20,就表示中断请求IR0~IR7中断号的范围是0x20~0x27(8259A芯片产生的IRQ号必须是连续的,所以也只需要设置起始号就ok了!) ......

Linux下完成的一个作业程序

文档创建日期:2010-02-19
    01    // P173: 2.编程题 (7)
    02   
    03    // The beginning of C program: test06-07.c.
    04   
    05    // ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号