Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

(ת)Ò»¸ö¼òµ¥µÄ´øÍ·Î²Ö¸Õëµ¥ÏòÁ´±í£¨CʵÏÖ£©

ÓÃCдÁËÒ»¸ö´øÍ·Î²Ö¸ÕëµÄµ¥ÏòÁ´±í£¬½öÔÚβ²¿½øÐвåÈë²Ù×÷£¬ÔÚÈÎÒâλÖýøÐÐɾ³ý²Ù×÷¡£ÒòΪֻÓõ½ÕâôЩ¹¦ÄÜ£¬ÓÖÒòΪÀÁ£¬ËùÒÔûÓÐÀ©Õ¹¡£ÒòΪ²åÈëÊǹ̶¨ÔÚβ²¿½øÐУ¬´øÒ»¸öβָÕëµÄºÃ´¦ÊÇÏÔ¶øÒ×¼ûµÄ¡£µ±È»É¾³ýʱҪ¸¶³öһЩ¿ªÏú¡£
¡¡¡¡list.h
¡¡¡¡£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­
¡¡¡¡/* list.h
¡¡¡¡** Copyright 2004 Coon Xu.
¡¡¡¡** Author: Coon Xu
¡¡¡¡** Date: 06 Sep 2004
¡¡¡¡*/
¡¡¡¡#ifndef LIST_H
¡¡¡¡#define LIST_H
¡¡¡¡#include <stdio.h>
¡¡¡¡#include <stdlib.h>
¡¡¡¡struct listnode
¡¡¡¡{
¡¡¡¡ struct listnode* next;
¡¡¡¡ int data;
¡¡¡¡};
¡¡¡¡struct list
¡¡¡¡{
¡¡¡¡ struct listnode* head;
¡¡¡¡ struct listnode* tail;
¡¡¡¡ int count;
¡¡¡¡};
¡¡¡¡void list_init(struct list*);
¡¡¡¡void list_insert(struct list*, struct listnode*);
¡¡¡¡int list_delete(struct list*, struct listnode*);
¡¡¡¡#endif
¡¡¡¡£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­
¡¡¡¡list.c
¡¡¡¡£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­
¡¡¡¡/* list.c
¡¡¡¡** Copyright 2004 Coon Xu.
¡¡¡¡** Author: Coon Xu
¡¡¡¡** Date: 06 Sep 2004
¡¡¡¡*/
¡¡¡¡#include "list.h"
¡¡¡¡void list_init(struct list* myroot)
¡¡¡¡{
¡¡¡¡ myroot->count = 0;
¡¡¡¡ myroot->head = NULL;
¡¡¡¡ myroot->tail = NULL;
¡¡¡¡}
¡¡¡¡void list_insert(struct list* myroot, struct listnode* mylistnode)
¡¡¡¡{
¡¡¡¡ myroot->count++;
¡¡¡¡
¡¡¡¡ mylistnode->next = NULL;
¡¡¡¡ if(myroot->head == NULL)
¡¡¡¡ {
¡¡¡¡ myroot->head = mylistnode;
¡¡¡¡ myroot->tail = mylistnode;
¡¡¡¡ }
¡¡¡¡ else
¡¡¡¡ {
¡¡¡¡ myroot->tail->next = mylistnode;
¡¡¡¡ myroot->tail = mylistnode;
¡¡¡¡ }
¡¡¡¡}
¡¡¡¡int list_delete(struct list* myroot, struct listnode* mylistnode)
¡¡¡¡{
¡¡¡¡ struct listnode* p_listnode = myroot->head;
¡¡¡¡ struct listnode* pre_listnode;
¡¡¡¡
¡¡¡¡ //myroot is empty
¡¡¡¡ if(p_listnode == NULL)
¡¡¡¡ {
¡¡¡¡ return 0;
¡¡¡¡ }
¡¡¡¡
¡¡¡¡ if(p_listnode =


Ïà¹ØÎĵµ£º

C±àÂë¹æ·¶

1 ÎĵµËµÃ÷
2 Îļþ½á¹¹
2.1 ΪÁ˸üºÃµÄÀûÓÃCVSµÄÐ޸ļǼ¹¦ÄÜ£¬ÔÚcommitµÄʱºò£¬ÈÏÕæµÄÌîдÐ޸ļǼ¡£
2.2 Ϊ·ÀֹͷÎļþ±»Öظ´ÒýÓã¬Ó¦µ±ÓÃifndef/define/endif½á¹¹²úÉúÔ¤´¦Àí¿é£»
2.3 ʹÓÃ__cplusplusºê¶¨Ò壬ʹ³ÌÐò¿ÉÒÔ·½±ãµÄÒÆÖ²ÖÁC++»·¾³Ï£»
2.4 Óà #include ¸ñʽÀ´ÒýÓñê×¼¿âµÄÍ·Îļþ£¨±àÒëÆ÷½«´Ó±ê×¼¿âĿ¼¿ªÊ ......

C/C++µ×²ãʵÏÖÖ¸¶¨´ÅÅÌÖ»¶Á

  C/C++µ×²ãʵÏÖÖ¸¶¨´ÅÅÌÖ»¶Á ÊÕ²Ø
Ñà¿ñͽдµÄÇý¶¯¹Ò¹³£¬ÏÞÖÆ´ÅÅÌÖ»¶Á£¬ ÓÃÓÚ±£Ö¤ÉæÃܼÆËã»úµÄÎȶ¨£¬Ï൱ÓÚ½«´ÅÅ̱ä³ÉROM #include "ntddk.h"
#include
#include #define DRIVERNAME "OnlyRead(GongXiPeng!)"     // for use in messages typedef struct tagDEVICE_EXTEN ......

ÂÛC/SÓëB/S

½ñÌì×ßÉÏ·ÉÏͻȻÓижø·¢£¬ÎÒÃÇÀÏʦһֱ¸øÎÒÃǽ²Òª´ÓC/SתÏòB/S£¬µ«ÊÇÎÒ¾õµÃʲôÊÇC/S£¬Ê²Ã´ÊÇB/S£¿Æäʵ¶¼Êǿͻ§»ú·þÎñÆ÷ģʽ°É£¡ÒÔǰ¸ù±¾Ã»ÓÐB/SµÄ¸ÅÄ¶øÈç½ñÕâ¸öB/SµÄ¸ÅÄîÔõô±äµÃÈç´ËµÄ¿äÕÅ£¬ä¯ÀÀÆ÷Ã÷Ã÷¾ÍÊÇÒ»¸ö¿Í»§¶ËÈí¼þ£¬Ö»ÊǰÑÄÇЩ¹æ·¶ºÃµÄÎı¾Òë³É¸÷ÖÖ¸÷ÑùµÄ¸ñʽ£¬Ö»ÊÇ´ó¼Ò¶¼×ñÑ­ÁËÕâÑùµÄÒ»¸ö¹æ¶¨¾Í±ä³ÉÁËÁíÒ»ÖÖ ......

SQLite3µÄC±à³Ì

/*=================================
.*  The Standard include file.
.*
.*===============================*/
#include <stdio.h>
#include <stdlib.h>
/*=================================
.*
.*  The extend include file.
.*
.*===============================*/
#include "sqlit ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ