LinuxÏÂÍê³ÉµÄÒ»¸ö×÷Òµ³ÌÐò
Îĵµ´´½¨ÈÕÆÚ£º2010-02-19
01 // P173: 2.±à³ÌÌâ (7)
02
03 // The beginning of C program: test06-07.c.
04
05 // Header files included.
06 #include <stdio.h>
07
08 // Macro definition.
09 #define MAX_SIZE 100
10
11 // No.1: Subroutine: float rounding ( float f_num );
12 float rounding ( float f_num )
13 {
14 long int temp=0;
15 temp = (long int) (f_num * 100);
16 temp = (long int) ((f_num*100 - temp)*2 + temp);
17 f_num = temp / 100.0;
18
19 return (f_num);
20 }
21
22 // No.2: Subroutine: void select_sort ( float list[], int size ); Ñ¡ÔñÅÅÐò×Óº¯Êý
23 void select_sort ( float list[], int size )
24 {
25 int i, j, min;
26 float temp=0.0;
27 for ( i=0; i<size-1; i++ )
28 &
Ïà¹ØÎĵµ£º
LinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµÄÒ»°ãÐÎʽΪ£»
find pathname -options [-print -exec -ok ...]
2¡¢findÃüÁîµÄ²ÎÊý£»
pathname: findÃüÁîËù²éÕÒµÄĿ¼·¾¶¡£ÀýÈçÓÃ.À´±íʾµ±Ç°Ä¿Â¼£¬ÓÃ/À´±íʾϵͳ¸ùĿ¼¡£
-print£º findÃüÁƥÅäµÄÎļþÊä³öµ½±ê×¼Êä³ö¡£
-exec£º findÃüÁî¶Ô ......
Á½ÖÖ·½Ê½£º
Ò»ÖÖÊÇͨ¹ýÖÕ¶ËÊÖ¶¯¹ÒÔؼÓÉϲÎÊý: -o iocharset=utf8
È磺# mount /dev/sdb1 -t vfat /mnt/usb/ -o iocharset=utf8
µÚ¶þÖÖÊÇͨ¹ý¼ÓÈëÄÚºËÖ§³ÖÔÚFile systems ---> DOS/FAT/NT Filesystems --->ÖÐÓÐÁ½ÏîÐÞ¸ÄΪ£ ......
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ѧϰָÄÏÕë(ѧϰ·½·¨Ì¸Ö®¶þ)
Ö¸ÄÏÕë, linux, ѧϰ
һ.ΪʲôҪѧlinux?
µ±È»×îÖØÒªÊÇ°®ºÃºÍÐËȤ£¡Èç¹ûÄãÕâÖÖ±ØҪѧ£¬»òÕ߸ù±¾²»Ï²»¶£¬Çë²»ÒªÀË·Ñʱ¼ä£¬ÄãѧҲѧ²»ºÃ£¡
¶þ.Æð²½
ÄãÓ¦¸ÃΪ×Ô¼º´´ÔìÒ»¸öѧϰlinuxµÄ»·¾³--ÔÚµçÄÔÉÏ×°Ò»¸ölinux»òunix
ÎÊÌâ1£º°æ±¾µÄÑ¡Ôñ
±±ÃÀÓÃredhat,Å·ÖÞÓÃSuSE,×ÀÃæmandrake ......