Çë½ÌÎļþ´ò°üµÄº¯Êý£¨linuxÏ£© - C/C++ / CÓïÑÔ
¸÷룬ÎÒÏÖÔÚÐèÒª°ÑÒ»¸öĿ¼ÏµÄһЩÎļþ´ò³ÉÒ»¸ö°ü£¨linux OS£©£¬ ²»ÖªµÀʹÓú¯Êý¡£
LinuxµÄÒ²ÐУ¬C¿âÀïÃæµÄÒ²ÐС£
²»ÖªµÀÄÄλ´óÏÀÖªµÀ£¬Çë¸æËßÎÒ¡£Ð»Ð»¡£
tar -cf 11.rar dealVGOP*
tar -cvf core.tar core
´ò°ü
Tar -xvf core.tar
½â°ü
×îºÃµÄÀÏʦ man tar
ÒªÔÚ³ÌÐò£¨CÓïÑÔ£©ÀïÃæÓõġ£
ÇëÎÊ»¹Óиü¾ßÌåµÄ·½·¨Âð£¿ÄÜ·ñÌù¶Î´úÂ룿
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë
Äã²»Àí½âÖ ......