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


相关文档:

unbuntu linux bugzilla配置过程

在vm下安装unbuntu linux server 9.04
安装完成 查看IP地址 ifconfig
安装telnet sudo apt-get install xinetd telnetd
因为不需要太多人TELNET  暂时不做修改配置文件。
安装FTP sudo apt-get install vsftpd
同样不需要配置 使用默认的ftp:ftp用户访问
mysql
  sudo apt-get install mysql-server
apac ......

linux学习指南针


linux学习指南针(学习方法谈之二)
指南针, linux, 学习
一.为什么要学linux?
当然最重要是爱好和兴趣!如果你这种必要学,或者根本不喜欢,请不要浪费时间,你学也学不好!
二.起步
你应该为自己创造一个学习linux的环境--在电脑上装一个linux或unix
问题1:版本的选择
北美用redhat,欧洲用SuSE,桌面mandrake ......

Linux下文件查找实例

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

Linux下常用的关机实例

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

[转]安装linux后的内核调优

kernel.shmall = 268435456
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_max_tw_buckets = 5000
net.ip ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号