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

Linux下完成的一个作业程序

文档创建日期:2010-02-18
    01    // P173: 2.编程题 (5)输入一个字符串,统计英文字母、空格、数字和其他字符的个数。
    02   
    03    // The beginning of C program: test06-05.c.
    04   
    05    // Header files included.
    06    #include <stdio.h>
    07    #include <string.h>
    08   
    09    // Macro definition.
    10    #define MAX_SIZE 100
    11   
    12    // Main function's declaration.
    13    int  main ( void )
    14    {
    15        char   ch[MAX_SIZE];
    16        int    letter=0,  space=0,  number=0,  other=0,  i=0,  length=0;
    17        printf ( "Please input a line of characters: " );
    18        do
    19        {
    20            ch[i] = getchar();
    21            i++;
    22        } while ( ch[i-1] != '\n' );
    23        length = i-1;
    24        ch[length] = '\0';
    25        printf ( "The string length is: %d\n", strlen(ch) );
    26  &nbs


相关文档:

zz GDB概述(LINUX下的跟踪调试)


GDB是GNU开源组织发布的一个强大的UNIX下的程序调试工具。或许,各位比较喜欢那种图形 
界面方式的,像VC、BCB等IDE的调试,但如果你是在UNIX平台下做软件,你会发现GDB这个 
调试工具有比VC、BCB的图形化调试器更强大的功能。所谓“寸有所长,尺有所短”就是这 
个道理。 
 
一 ......

linux 0.11 内核学习 bitmap.c


/*
 *  linux/fs/bitmap.c
 *
 *  (C) 1991  Linus Torvalds
 */
/* bitmap.c contains the code that handles the inode and block bitmaps */
#include <string.h>
#include <linux/sched.h>
#include <linux/kernel.h> // 一些内核常用函数的原形定义
......

linux下自带的mysql卸载和安装

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

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

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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号