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


相关文档:

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
......

Java判断OS是linux还是windows

public class Test {
public static void main(String aa[]) {
if (System.getProperty("os.name").equals("Linux")) {
System.out.println("linux");
} else if (System.getProperty("os.name").equals("Windows XP")) {
System.out.println("win ......

Linux下完成的一个作业程序

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

Linux下完成的一个作业程序

文档创建日期:2010-02-19
    01    // P173: 2.编程题 (7)
    02   
    03    // The beginning of C program: test06-07.c.
    04   
    05    // ......

Linux下完成的一个作业程序

文档创建日期:2010-02-19
[文件1: test06-08.c]
    01    // P174: 2.编程题 (8)把有序的两个数组a和b合并,要求合并后的数组依然有序
    02   
    03    // The beginning of C program: test06-08.c.
 &nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号