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
Ïà¹ØÎĵµ£º
/*
* 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>
......
V] ÁãÆðµãѧϰLinuxϵÁÐÅàѵÊÓÆµ -1 £¨º®±ù×÷Æ·£©
http://www.boobooke.com/v/bbk1301
[V] ÁãÆðµãѧϰLinuxϵÁÐÅàѵÊÓÆµ -2 £¨º®±ù×÷Æ·£©
http://www.boobooke.com/v/bbk1304
[V] ÁãÆðµãѧϰLinuxϵÁÐÅàѵÊÓÆµ -3 £¨º®±ù×÷Æ·£©
http://www.boobooke.com/v/bbk1305
[V] ÁãÆðµãѧϰLinuxϵÁÐÅàѵÊÓÆµ -4 £¨º®±ù×÷Æ·£©
......
¡¡ÖÚËùÖÜÖª£¬ÍøÂ簲ȫÊÇÒ»¸ö·Ç³£ÖØÒªµÄ¿ÎÌ⣬¶ø·þÎñÆ÷ÊÇÍøÂ簲ȫÖÐ×î¹Ø¼üµÄ»·½Ú¡£Linux±»ÈÏΪÊÇÒ»¸ö±È½Ï°²È«µÄInternet·þÎñÆ÷£¬×÷ΪһÖÖ¿ª·ÅÔ´´úÂë²Ù×÷ϵͳ£¬Ò»µ©LinuxϵͳÖз¢ÏÖÓа²È«Â©¶´£¬InternetÉÏÀ´×ÔÊÀ½ç¸÷µØµÄÖ¾Ô¸Õß»áÓ»Ô¾ÐÞ²¹Ëü¡£È»¶ø£¬ÏµÍ³¹ÜÀíÔ±ÍùÍù²»Äܼ°Ê±µØµÃµ½ÐÅÏ¢²¢½øÐиüÕý£¬Õâ¾Í¸øºÚ¿ÍÒԿɳËÖ®»ú¡£È»¶ø ......
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 ......
Ò»¡¢»¨Éú¿ÇFor Linux°²×°²½Öè
¡¡¡¡ÏÂÔØÊʺÏÄúµÄunix/linux°æ±¾µÄ°²×°°üÎļþ,ʹÓÃrootÉí·Ý½âѹËõ°²×°°ü
¡¡¡¡# tar -zvxf phlinux-1.0-install.redhat.9.0.tar.gz
¡¡¡¡°²×°°üÎļþ½«½âѹËõÖÁphlinux_installĿ¼ÖÐ
¡¡¡¡# cd phlinux_install
¡¡¡¡Ö´Ðа²×°½Å±¾
¡¡¡¡# ./install.sh
¡¡¡¡Ö´Ðа²×°½Å±¾ºó,½«×Ô¶¯ÒÔ»¥¶¯ÅäÖÃÄ ......