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
相关文档:
下载 SDK
系统和软件需求
用Android sdk的代码和工具开发Android应用程序,你需要下面列出来的合适开发电脑和开发环境.
所需操作系统:
•Windows XP 或 Vista
•Mac OS X 10.4.8 或更高版本 (仅支持x86)
•Linux ( Linux Ubuntu Dapper Drake 版本已测试)
所需开发环境:
•Eclipse IDE
◦Ecli ......
/*
* ioctl.c 文件实现了输入/输出控制系统调用ioctl(),该函数
* 主要是调用函数tty_ioctl()对终端的IO进行控制
*/
/*
* linux/fs/ioctl.c
*
* (C) 1991 Linus Torvalds
*/
#include <string.h>
#include <errno.h>
#include <s ......
在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下 mysql 的卸载和安装
关键字: linux下 mysql 的卸载和安装
一、前期准备:
1
.由于redhat Enterprise 5 中自带一个mysql的版本,如果在安装linux前未选择mysql的安装此步就可跳过,因为我当时安装了现在将其卸载
,步骤如下:
&nb ......
嵌入式linux基础知识大纲
其实这段时间非常的忙,忙到连做饭吃的时间都没有了。但是今天我特意抽空,来给关注我的朋友们一点点交代。(因为今天发现关注的人还蛮多的,有点受宠若惊啊!哈哈....)如题我暂时只能给大家一些大纲,很详细的学习过程要等大概半个月的时间,我有了空闲时间才能 ......