易截截图软件、单文件、免安装、纯绿色、仅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 0.11 内核学习 inode.c


/*
 *  linux/fs/inode.c
 *
 *  (C) 1991  Linus Torvalds
 */
#include <string.h>
#include <sys/stat.h> // 文件状态头文件
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <asm/system.h> ......

增强Linux/Unix服务器系统安全性介绍


 众所周知,网络安全是一个非常重要的课题,而服务器是网络安全中最关键的环节。Linux被认为是一个比较安全的Internet服务器,作为一种开放源代码操作系统,一旦Linux系统中发现有安全漏洞,Internet上来自世界各地的志愿者会踊跃修补它。然而,系统管理员往往不能及时地得到信息并进行更正,这就给黑客以可乘之机。然而 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号