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

Á´±í×ۺϲÙ×÷C°æʵÏÖ³ÌÐò

¾ö¶¨ÕÒʱ¼ä°ÑÊý¾Ý½á¹¹¸´Ï°Ï£¬´ÓÁ´±í¿ªÊ¼°É¡£Õâһ֪ʶµãËä˵²¢²»Éæ¼°¸´ÔÓµÄËã·¨£¬²»ÐèÒª·Ñ¾¡Í·ÄÔȥ˼¿¼À´ÁúÈ¥Âö£¬µ«ÊÇҪд³öÍêÕûµÄ³ÌÐòÀ´£¬»¹ÊÇÒª»¨Ò»Ð©Ê±¼äµÄ¡£ÌرðÊÇÈç¹û¶ÔÖ¸Õë²Ù×÷²»¹»ÊìÁ·£¬¼«Ò׳ö´í¡£ºÃ¾ÃûÓÃCд³ÌÐòÁË……
ÍêÕû´úÂ룺
/*
* µ¥Á´±í»ù±¾²Ù×÷C°æʵÏÖ³ÌÐò
* °üÀ¨²åÈ롢ɾ³ý¡¢²éÕÒ¡£
*
* author: wensefu
* date: 10-5-4
*/
#include<stdio.h>
#include<stdlib.h>
/*µ¥Á´±íÊý¾Ý½á¹¹¶¨Òå*/
typedef struct Node
{
int e; //ÕâÀï¼òµ¥µã£¬ÒÔÕûÐÍΪ½áµãÊý¾ÝÓò
struct Node * next;
}LNode,*LinkList;
/*Ïà¹Øº¯ÊýÉùÃ÷*/
bool ListInit(LinkList); //³õʼ»¯Á´±í
bool ListInsert(int,int,LinkList); //²åÈë £¨×¢£ºCÖÐûÓÐboolÀàÐÍ£©
bool ListDelete(int,LinkList); //ɾ³ýÖ¸¶¨Î»Öýáµã
int GetElem(LinkList,int); //·µ»ØÖ¸¶¨Î»ÖýáµãÊý¾ÝÓòµÄÖµ
int GetLength(LinkList); //»ñÈ¡Á´±í³¤¶È
void print(LinkList); //print
LinkList CreateList(); //½¨Á¢Ò»¸ö¿ÕÁ´±í
int main()
{
printf("--------------------------------Á´±í×ۺϲÙ×÷------------------------------\n\n");

/****Ïȳõʼ»¯*******/
LinkList l=CreateList();
if(ListInit(l))
{
printf("The linklist now is:>");
print(l);
}

/******Ö´ÐвÙ×÷**********/
bool flag=true;
int e,pos;
while(true)
{
if(flag==false)
{
break;
}
printf("ÇëÑ¡Ôñ²Ù×÷: 1.²åÈë 2.ɾ³ý 3.²éÕÒ 4.Í˳ö>");

int choice;
while(true)
{
scanf("%d",&choice);
if(choice<1||choice>4)
{
printf("Input error,try again:>");
}
else
{
break;
}
}
switch(choice)
{
case 1:
printf("input elem and pos>");
scanf("%d%d",&e,&pos);
if(ListInsert(e,pos,l))
{
printf("Insert successful,now the linklist is: ");
print(l);
}
else
{
printf("Insert failed\n");
}
break;
case 2:
printf("input pos to delete>");
scanf("%d",&


Ïà¹ØÎĵµ£º

c ÓïÑÔÖдøconst µÄÖ¸ÕëС¼Ç

Ò»¡¢ÓÐÈçÏ´úÂ룺
int age = 25;
const int *pAge = &age;

ÉÏÃæµÄ´úÂë±íʾ£º
1¡¢Ö¸Õë±äÁ¿pAge´æ·Å±äÁ¿ageµÄµØÖ·£¬ÇÒ²»ÄÜͨ¹ý *pAge = 30£¬À´¸Ä±äÖ¸Õë±äÁ¿pAgeËùÖ¸ÏòµÄ´æ´¢¿Õ¼äµÄÖµ£¬µ«ÊÇ ¶ÔÓÚ age = 30£¬ÔòÊÇûÓÐÎÊÌâµÄ¡£
2¡¢pAge ±¾Éí¿ÉÒÔÔÙ´æ·ÅÆäËü±äÁ¿µÄµØÖ·£¬Ò²¿ÉÒÔÖ¸ÏòNULL£¬Èç pAge = NULL;ÊÇÕýÈ·µÄ¡£
¶ ......

C/C++ÖÐtypedefµÄÓ÷¨£¬¸æËßÄã²»Ò»ÑùµÄtypedef


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

[ת]C\C++ÓïÑÔÈëÃÅƪϵÁÐ

ËäȻѧϰÁ˺öàÄê,µ«ÐèҪϸ¾¿Ä³Ð©»ù´¡ÖªÊ¶µÄʱºò»¹ÊÇ·¢ÏÖ×Ô¼ºÍüÁË, ´Ó±ðÈ˵ÄÎÄÕ°ǹýÀ´,ÒÔ±¸¸´Ï°
²Î¿¼: http://blog.csdn.net/masefee/archive/2009/12/28/5090820.aspx
============================================================
֮ǰµÄ¶¨Î»¿ÉÄÜÖ÷ҪΪÁËÑо¿µ×²ã¼°Ò»Ð©½Ï¸´ÔÓµÄÎÊÌâÉÏ£¬¶øºöÂÔÁËһЩ³õѧµÄÅóÓÑ¡£µ¼ ......

C³ÌÐòʹÓò»Í¬º¯Êýµ÷ÓÃÔ¼¶¨µ÷Óûã±à×Ó¹ý³Ì

ÈçתÔØ£¬Çë×¢Ã÷³ö´¦£ºhttp://blog.csdn.net/zhangyang0402/archive/2010/05/01/5549266.aspx
 
¿ª·¢¹¤¾ß£ºVC ++ 6.0  MASM32
 
Ò»¡¢__cdeclµ÷Ó÷½Ê½
 
1£®  ÔÚVCÖÐн¨Win32 Console Application, TestASM
 
2£®  н¨test.c
#include<stdio.h>
extern void swap(int * ......

mvc¡¢oopģʽ C/S¡¢B/S¹¹¼Ü

ʲôÊÇmvcģʽ £¿
    MVC ʽµÄ³öÏÖ²»½öʵÏÖÁ˹¦ÄÜÄ£¿éºÍÏÔʾģ¿éµÄ·ÖÀ룬ͬʱËü»¹Ìá¸ßÁËÓ¦ÓÃϵͳµÄ¿Éά»¤ÐÔ¡¢¿ÉÀ©Õ¹ÐÔ¡¢¿ÉÒÆÖ²ÐÔºÍ×é¼þµÄ¿É¸´ÓÃÐÔ
B/S ģʽºÍC/SģʽÓÐʲôÇø±ð£¿
C/S½á¹¹£¬¼´Client/Server(¿Í»§»ú/·þÎñÆ÷)½á¹¹£¬ÊÇ´ó¼ÒÊìÖªµÄÈí¼þϵͳÌåϵ½á¹¹£¬Í¨¹ý½«ÈÎÎñºÏÀí·ÖÅäµ½Client¶ËºÍServer¶Ë£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ