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

Linux下完成的一个作业程序

文档创建日期:2010-02-19
    01    // P173: 2.编程题 (7)
    02   
    03    // The beginning of C program: test06-07.c.
    04   
    05    // Header files included.
    06    #include <stdio.h>
    07   
    08    // Macro definition.
    09    #define MAX_SIZE 100
    10   
    11    // No.1: Subroutine: float rounding ( float f_num );
    12    float  rounding ( float f_num )
    13    {
    14        long int    temp=0;
    15        temp = (long int) (f_num * 100);
    16        temp = (long int) ((f_num*100 - temp)*2 + temp);
    17        f_num = temp / 100.0;
    18       
    19        return  (f_num);
    20    }
    21   
    22    // No.2: Subroutine: void select_sort ( float list[], int size ); 选择排序子函数
    23    void  select_sort ( float list[], int size )
    24    {
    25        int     i,  j,  min;
    26        float   temp=0.0;
    27        for ( i=0; i<size-1; i++ )
    28  &


相关文档:

mysql on suse linux 系统命令笔记

SLES 11
设置mysql服务自动启动状态
chkconfig mysql on
(chkconfig mysql off)
添加/删除mysql服务
/sbin/chkconfig --del mysql
/sbin/chkconfig --add mysql
查看mysql版本
mysql -V

mysqld -V
启停 mysql
service mysql start
service mysql stop
service mysql restart
......

linux下磁盘操作命令

查看系统的磁盘信息:
fdisk -l
[root@localhost home]# fdisk -l
Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 979 7759395 ......

嵌入式linux基础知识大纲

嵌入式linux基础知识大纲
      其实这段时间非常的忙,忙到连做饭吃的时间都没有了。但是今天我特意抽空,来给关注我的朋友们一点点交代。(因为今天发现关注的人还蛮多的,有点受宠若惊啊!哈哈....)如题我暂时只能给大家一些大纲,很详细的学习过程要等大概半个月的时间,我有了空闲时间才能 ......

Linux下常用的关机实例

Linux下关机最要有以下方法,我想这些方法足以满足你的需要:
[root@localhost /]# shutdown [-t秒] [-arkhcncfF] [时间] [提示信息]
[root@localhost /]# shutdown -h 10 'I will shutdown after 10 mins'
-t sec : -t 后加秒数,即‘过几秒钟后关机’的意思。
-k : 不要真的关机,只是发送提示信息。
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号