Linux/WinCE C¡¢C++¸ß¶Ë¿Î³Ì
—¡ï—ÅàѵÖÜÆÚ£º¹²950ѧʱ 5¸öÔÂ
—¡ï—Åàѵ¸½Ôù£º±£Ö¤Ñ§Ô±ÈËÊÖÒ»»úºÍÒ»Ì×ARM9¿ª·¢°å
—¡ï—ÅàѵÄÚÈÝ£ºÔÚÏîÄ¿¾ÀíµÄ´øÁìÏ£¬Í¨¹ýÍê³É¾ÖÍøµÄÂ齫ÓÎÏ·¡¢My ICQ(ÍøÂçÁÄÌì)ºÍ·¢µç»úÔÚÏß¼à¿Øϵͳ£¬BTÏÂÔØÈí¼þ£¬ÕÆÎÕ»ùÓÚLinuxºÍWindowsƽ̨ϵÄC/C++ÆóÒµ¼¶Ó¦ÓõĿª·¢¼¼ÄÜ£¬ÕÆÎÕ´óÐÍÈí¼þÏîÄ¿¹ý³ÌÖÐËùÐèÒªµÄÈí¼þ¼¼Êõ¡¢Éè¼Æ¹æ·¶¡¢¿ª·¢Á÷³Ì¡¢²âÊÔÁ÷³Ì¼°¼¼Êõ¡¢ÖÊÁ¿¿ØÖƼ°ÏîÄ¿¹ÜÀí¡£
—¡ï—±¨ÃûÌõ¼þ£ºÀí¹¤¿Æרҵ±¾¿ÆÒÔÉÏѧÀú¡¢µç×Ó¡¢Í¨ÐźͼÆËã»úרҵר¿ÆÒÔÉÏѧÀú£¨°üº¬ÔÚ¶ÁѧÉú£©£»Ç¶Èëʽ°®ºÃÕß¡¢ARM¿ª·¢°åÓû§¡£
Ïà¹ØÎĵµ£º
ÔÚÅäÖÃÐéÄâ»·¾³µÄʱºò Á¬½Ó·½Ê½Ñ¡ÔñÇŽӷ½Ê½£¬ÔÚlinuxÆäËû°æ±¾µÄϵͳÖнøÈ¥¾Í¿ÉÒÔÖ±½ÓÉÏÍøµÄ£¬µ«ÊÇÔÚredhat9µÄä¯ÀÀÆ÷ϽøÈëÍøÕ¾ÀÏÊÇÌáʾÕÒ²»µ½¡£´ËʱÈç¹ûÄãÊÔÒ»ÏÂifup eth0Äã»á·¢ÏÖÌáʾÈçÏ£º
determining ip information for eth0... failed no link present. check cable
Íø¿¨¼¤»îʧ°Ü¡£
´ËʱÄã¿ÉÒÔ³¢ÊÔÐÞ¸ÄÒ»ÏÂ/etc/s ......
LinuxºËÐļ¸¸öÖØÒª¸úʱ¼äÓйصÄÃû´Ê»ò±äÊý£¬µ×Ͻ«½éÉÜHZ¡¢tickÓëjiffies¡£
£¨1£©HZ
LinuxºËÐÄÿ¸ô¹Ì¶¨ÖÜÆڻᷢ³ötimer interrupt (IRQ 0)£¬HZÊÇÓÃÀ´¶¨ÒåÿһÃëÓм¸´Îtimer interrupts¡£¾ÙÀýÀ´Ëµ£¬HZΪ1000£¬´ú±íÿÃëÓÐ1000´Îtimer interrupts¡£ HZ¿ÉÔÚ±àÒëºËÐ ......
3.2 ¸ßЧÂʲâÊÔ£ºËÄÁ½°Îǧ½ï
ÉÏÒ»½Ú½éÉÜÁËһЩËÆÊǶø·ÇµÄ¸ßЧÂÊ·½·¨£¬ÄÇô£¬ÔõÑù²ÅÄÜÕæÕý¸ßЧÂʲâÊÔÄØ£¿ÕæÕýµÄ¸ßЧÂÊ£¬²»ÄܺöÂÔÈ˵ÄÖÇ»ÛÕâÒ»¹Ø¼üÒòËØ¡£
ÓÉÓÚ¹¤¾ß²»¿ÉÄÜ×Ô¶¯Á˽â´úÂëµÄÉè¼Æ¹¦ÄÜ£¬Ö»ÓÐÈ˲ÅÁ˽⣬Òò´Ë£¬Ö»ÓÐÈ˵ÄÖǻۼ°Ê±½éÈ룬¹¤¾ß²ÅÄÜ×öÕýÈ·µÄÊÂÇ飬²ÅÄÜ´ïµ½ÕæÕýµÄ¸ßЧÂÊ¡£
&nb ......
ÔÚÍøÉÏÕÒµ½µÄÒ»¸ö³ÌÐò
[c]
#include <stdio.h>
#include <sys/types.h>
#include <regex.h>
/* È¡×Ó´®µÄº¯Êý */
static char* substr(const char*str,unsigned start, unsigned end)
{
unsigned n = end - start;
static char stbuf[256]; ......