LINUX ÏÂC±à³ÌÎÊÌ⣿
СµÜÊÇLINUX²ËÄñ£¬×î½üÔÚѧϰlinuxÏÂC±à³ÌÓöµ½¸öÀ§ÄÑ£¬ÏëÇë½Ì¸ßÊÖÃǸöÎÊÌ⣬ÈôÄÜ°ïСµÜ½â¾ö
²»Ê¤¸Ð¼¤·····
LINUX ÏÂÓиöcal ÃüÁ¾ÍÊÇÄÜ°ÑÈÕÀúÏÔʾ³öÀ´µÄÄǸö
ÎÒÈç¹ûÒªCÏÂÃæÓÃsystem call ʵÏֵĻ°ÒªÓÃsystem("cal")
µ«ÏÖÔÚÓиöÎÊÌâ¾ÍÊÇ£¬Èç¹ûÁ¬Ðøµ÷ÓÃÈý´Îsystrm£¨"cal")µÄ»°ËüµÄÏÔʾ¸ñʽÊÇÕâÑùµÄ£º
XXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXX
Èç¹ûÎÒÏëÁ¬Ðøµ÷ÓÃÈý´ÎºóÏÔʾ½á¹ûÊDz¢ÅŵÄ
XXXXX XXXXX XXXXX
XXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXXX
XXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXXX
XXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXXXX
XXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXXXX
ÎÒÓ¦¸ÃÈçºÎÓÃpipe() dup() dup2() read() write()ÕâЩ¶«Î÷ʵÏÖÄØ£¿
Âé·³¸ßÊÖÃǸøÎÒÖ¸µãÃÔ½òÏ·····ÔÚÕâÀïл¹ýÁË···£¡£¡
C/C++ code
Code highlighting produced by Actipro CodeHighligh
Ïà¹ØÎÊ´ð£º
ÎÊһϣº
#include <stdio.h>
int main()
{
char x, y, z;
int i;
int a[16];
for(i=0; i<=16; i++)
{
a[i] = 0;
......
×î½üͻȻÏë×Ô¼ºÀ´ÊµÏÖÒ»¸öÎå×ÓÆå³ÌÐò,µ«²»ÖªµÀÔõô¿ªÊ¼,×Ô¼ºÒ²Ã»Ñ§»Í¼Ðκ¯Êý,ÄÜÔÚ¿ØÖÆ̨ÏÂÖ±½ÓдÂð>>>?????
¿ØÖÆ̨£¿±ÈͼÐνçÃæ¸üÂé·³¡£
http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......
ÇëÎʸ÷λ¸ßÊÖÈçºÎÓÃC/C++»ñµÃϵͳδ°²×°²¹¶¡
ºÃÏñºÜרҵµÄ¶«Î÷¡£¡£¡£
²é×¢²á±í
ÿ¸ö²¹¶¡Èç¹û°²×°Á˶¼»áÔÚ×¢²á±íÀïÃæµÇ¼Ç
ÇëÎÊÄܲ»ÄܸüÇåÎúЩ£¬ÎÒÏëÓÃc\c++²é³öÀ´£¬²»ºÃÒâ˼£¬ÎÒÊÇÐÂÊÖ¡£»¹ÍûÖ¸½Ì¡£Ð»
·ÖÖµ ......
ÓÃc/c++¶¨Î»É¾³ýÒ»ÐеÄÎÊÌâ¡£
ÎÊÌâ±³¾°£º
ËùÐèÊý¾ÝÏ൱´ó¡£aÓëbÎļþ¾ùΪһ×éÎļþ£¨a1£¬a2¡£¬b1£¬b2¡£©£¬aÎļþÓÐ×î´óÊý¾ÝÐÐÊý£¨Èç5000£©£¬ÒÔÐеÄÐÎʽ£¬´ÓaÎļþÖжÁÈ¡Êý¾Ý£¬½«aÖв»ÄÜ´¦ÀíµÄÊý¾Ý·ÅÔÚbÎ ......
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......