×Ô¼ºÓÃCдµÄÒ»¸öÁ´±í£¬ÀÏÊÇÓÐ´í£¬¸ßÊÖÇë½ø£¡
×Ô¼ºÓÃCÓïÑÔÔÚVC6.0±àÒëÆ÷ÖÐдµÄÒ»¸öÁ´±í³ÌÐò¡£Èý¸öÎļþÈçÏ£º
LList.h£ºÁ´±íµÄÍ·Îļþ¡£
C/C++ code:
//ÓÃCÓïÑÔ¶¨ÒåµÄ°üº¬intÔªËØµÄµ¥Á´±í£¬ÊµÏÖÁËÔöɾ¸Ä²é¹¦ÄÜ¡£
#include <stdio.h>
#ifndef LLIST_H
#define LLIST_H
#ifdef __cplusplus
extern "C" {
#endif
enum bool
{
false,
true
};
typedef struct Node
{
int element;
struct Node *next;
}Node;
typedef struct
{
struct Node *head;
struct Node *tail;
int count;
}LList;
/*
Ìí¼ÓÒ»¸ö½Úµãµ½Á´±íÖУ¬³É¹¦·µ»Øtrue£¬Ê§°Ü·µ»Øfalse*/
enum bool add(LList *listPtr, int num);
/*
ɾ³ýÒ»¸öº¬ÓÐÌØ¶¨ÖµµÄ½ÓµãÖØÁ´±íÖÐ*/
enum bool del(LList *listPtr, int num);
/*
Ð޸ĺ¬ÓÐÒ»¸öÌØ¶¨µÄÖ²µÄ½Úµã*/
enum bool modify(LList *listPtr,int oldNum,int newNum);
/*
²éÕÒÒ»¸öº¬ÓÐÌØ¶¨ÖµµÄ½Óµã£¬ÕÒµ½²¢·µ»Ø½ÓµãµÄµØÖ·*/
Node* find(LList *listPtr,int num);
/*
³õʼ»¯Ò»¸öÁ´±í*/
enum bool initial(LList *listPtr);
/*
´òÓ¡Á´±íÖеÄËùÓÐÔªËØ*/
void printList(LList *listPtr);
#ifdef __cplusplus
}
#endif
#endif
LList.cÎļþ£¬Á´±íµÄ.cÎļþ£º
C/C++ code:
#include "LList.h"
#include <stdio.h>
#include <stdlib.h>
enum bool
Ïà¹ØÎÊ´ð£º
#include <string.h>
#include <stdio.h>
void main()
{
int i;
char buf[]="abcde";
strncpy(buf,"abc",3);
for(i=0;i <5;i++)
printf(&q ......
QQȺ 29152388
ÓÑÇéUP
°ï¶¥
up
°ïup
up Ö§³Ö£¡
up jf
...ÄѵÀÓзÖ..?
up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£
Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ
¼ÓÁË¡£
¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......
ΪʲôCдµÄDLLÎļþC¡¢PBÄܵ÷ÓÃVB²»Äܵ÷Óã¿
VBÀïΪʲôÓеÄDLLÖ±½Óͨ¹ýÒýÓÿÉÒÔʹÓã¿ÓеÄÐèҪͨ¹ýdeclareÉêÃ÷Íⲿº¯Êý£¿ÕâЩDLLÓÐʲô²î±ð£¿
1¡¢ÎªÊ²Ã´PBÄÜͨ¹ýDECLAREÉùÃ÷¶øVB²»ÐУ¿
2¡¢Èç¹ûÕâ¸ödllÖÐµÄ ......
Çë¸ù¾Ý°æ¹æ½øÐаæÎñµÇ¼Ç£¬Ìá¸ß°æÎñ͸Ã÷¶È
±¾Ìù½ûÖ¹¹àË®¡¢¹ã¸æ£¬Ò»¾·¢ÏÖ£¬Ò»ÂÉɾ³ý£¬¹ØÐ¡ºÚÎÝ
Èç¶Ô°æÎñÓн¨Òé»òÕßÒâ¼û£¬¿ÉÒÔÔÚ±¾ÌùÖнøÐз´À¡
¸½£º
C/C++°æÎñÌù-200907£ºhttp://top ......
±àд³ÌÐòdetab, ½«ÊäÈëÖеÄÖÆ±í·ûÌæ»»³ÉÊʵ±ÊýÄ¿µÄ¿Õ¸ñ£¬Ê¹¿Õ¸ñ³äÂúµ½ÏÂÒ»¸öÖÆ±í·ûÖÕÖ¹µÄµØ·½¡£¼ÙÉèÖÆ±í·ûÖÕֹλµÄλÖÃÊǹ̶¨µÄ£¬±ÈÈçÿ¸ônÁоͻá³öÏÖÒ»¸öÖÆ±í·ûÖÕֹλ¡£
£££££££££££££££££££ ......