易截截图软件、单文件、免安装、纯绿色、仅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  &


相关文档:

linux下自带的mysql卸载和安装

linux下 mysql 的卸载和安装
关键字: linux下 mysql 的卸载和安装

一、前期准备:
    1
.由于redhat Enterprise 5 中自带一个mysql的版本,如果在安装linux前未选择mysql的安装此步就可跳过,因为我当时安装了现在将其卸载
,步骤如下:
     &nb ......

嵌入式linux基础知识大纲

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

Linux下完成的一个作业程序

文档创建日期:2010-02-18
    01    // P173: 2.编程题 (5)输入一个字符串,统计英文字母、空格、数字和其他字符的个数。
    02   
    03    // The beginning of C program: test06-05.c.
    04  ......

Linux下文件查找实例

花了一个周末的时间列出来的。共享出来,希望大家花几分钟看看。这也算是LINUX下比较实用的查找方式了
which(寻找“执行文件”)
[root@localhost home]# which [-a] command
-a : 将所有可找到的命令均列出,而不仅仅列出第一个找到的命令名称
范例:
[root@localhost home]# which passwd
/usr/bin/passwd ......

Linux下创建文件

试一试,其实很简单的。
mkdir -m 775 filename
-m : 设置文件的权限。直接设置,不需要默认权限。
[root@localhost home]# mkdir text1
[root@localhost home]# mkdir -m 777 text2
[root@localhost home]# ls -l
drwxr-xr-x 2 root root 4096 2010-1-19 08:03 text1
drwxrwxrwx 2 root root 4096 2010-1-19 08:04 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号