LinuxÏÂÍê³ÉµÄÒ»¸ö×÷Òµ³ÌÐò
Îĵµ´´½¨ÈÕÆÚ£º2010-02-19
001 // P174: 2.±à³ÌÌâ (9)½«Êý×éaÖÐÏàÍ¬ÔªËØÖ»±£ÁôµÚÒ»¸ö£¬ÆäÓàɾ³ý¡£
002
003 // The beginning of C program: test06-09.c.
004
005 // Header files included.
006 #include <stdio.h>
007 #include "head06-09.h"
008
009 // Macro definition.
010 #define MAX_SIZE 100
011
012 // Main function's declaration.
013 int main ( void )
014 {
015 int i=0, n=10;
016 float list[MAX_SIZE];
017 printf ( "Please input 10 float numbers for the list: " );
018 for ( i=0; i<n; i++ )
019 scanf ( "%f", &list[i] );
020 for ( i=0; i<n; i++ )
021 list[i] = rounding (list[i]);
022 select_sort (list, n);
023 if ( delete_RptElmt (list, &n) == 0 )
024 return (1);
025 printf ( "The new list is:\n" );
026 for ( i=0; i<n; i++ )
027&n
Ïà¹ØÎĵµ£º
ʹÓÃÒ»ÖÖ±»³ÆÎª"¹«Ë½Ô¿"ÈÏÖ¤µÄ·½Ê½À´½øÐÐsshµÇ¼. "¹«Ë½Ô¿"ÈÏÖ¤·½Ê½¼òµ¥µÄ½âÊÍ:Ê×ÏÈÔÚ¿Í»§¶ËÉÏ´´½¨Ò»¶Ô¹«Ë½Ô¿ £¨¹«Ô¿Îļþ£º~/.ssh/id_rsa.pub£» ˽ԿÎļþ£º~/.ssh/id_rsa£©
È»ºó°Ñ¹«Ô¿·Åµ½·þÎñÆ÷ÉÏ£¨~/.ssh/authorized_keys£©, ×Ô¼º±£ÁôºÃ˽Կ.ÔÚʹÓÃsshµÇ¼ʱ,ssh³ÌÐò»á·¢ËÍ˽ԿȥºÍ·þÎñÆ÷ÉϵĹ«Ô¿×öÆ¥Åä.Èç¹ûÆ¥Åä³É¹¦¾Í¿ ......
Ò»¡¢»¨Éú¿ÇFor Linux°²×°²½Öè
¡¡¡¡ÏÂÔØÊʺÏÄúµÄunix/linux°æ±¾µÄ°²×°°üÎļþ,ʹÓÃrootÉí·Ý½âѹËõ°²×°°ü
¡¡¡¡# tar -zvxf phlinux-1.0-install.redhat.9.0.tar.gz
¡¡¡¡°²×°°üÎļþ½«½âѹËõÖÁphlinux_installĿ¼ÖÐ
¡¡¡¡# cd phlinux_install
¡¡¡¡Ö´Ðа²×°½Å±¾
¡¡¡¡# ./install.sh
¡¡¡¡Ö´Ðа²×°½Å±¾ºó,½«×Ô¶¯ÒÔ»¥¶¯ÅäÖÃÄ ......
1). /etc/sysconfig/network
Ö÷ÒªÓÃÓÚÉèÖÃÖ÷»úÃû³Æ£¨Host Name£©ÒÔ¼°ÄÜ·ñÆô¶¯Network¡£±ä¶¯´ËÎļþºóÐèÖØÆôLinux²ÅÄÜÉúЧ¡£
2). /etc/sysconfig/network-scrips/ifcfg-eth0
ÉèÖÃÍø¿¨²ÎÊý£¬ÈçGATEWAY,TYPE,DEVICE,NETMASK,IPADDR,USERCTLµÈ...
3). /etc/resolv.conf
Èç¹ûÒªÉèÖÃDNS¹¦ÄܽøÐÐÖ÷»úÃû³ÆºÍIPµÄ¶ÔÓ¦¡£ÄÇôresol ......
Linux
°æ±¾
Ò»ÀÀ
Linux
ÊÇÒ»Ì×Ãâ·ÑʹÓúÍ×ÔÓÉ´«²¥µÄÀà
Unix
²Ù×÷ϵͳ¡£ÎÒÃÇͨ³£Ëù˵µÄ
Linux
£¬Ö¸µÄÊÇ
GNU/Linux
£¬¼´²ÉÓÃ
Linux
Äں˵Ä
GNU
²Ù×÷ϵͳ¡£ÓÉÓÚ
Linux
ÊÇÒ»¸öÄںˣ¬ËüÖ»ÊDzÙ×÷ϵͳµÄºËÐÄ£¬¸ºÔð¿ØÖÆÓ²¼þ¡¢¹ÜÀíÎļþϵͳ¡¢³ÌÐò½ø³ÌµÈ¡£È»¶øÒ»¸öÍêÕûµÄ²Ù×÷ϵͳ²»½ö½öÊÇÄÚºË ......
Îĵµ´´½¨ÈÕÆÚ£º2010-02-19
£ÛÎļþ1: test06-08.c£Ý
01 // P174: 2.±à³ÌÌâ (8)°ÑÓÐÐòµÄÁ½¸öÊý×éaºÍbºÏ²¢£¬ÒªÇóºÏ²¢ºóµÄÊý×éÒÀÈ»ÓÐÐò
02
03 // The beginning of C program: test06-08.c.
&nbs ......