Á´±í×ۺϲÙ×÷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",&
Ïà¹ØÎĵµ£º
long longµÄ×î´óÖµ£º9223372036854775807
long longµÄ×îСֵ£º-9223372036854775808
unsigned long longµÄ×î´óÖµ£º1844674407370955161
__int64µÄ×î´óÖµ£º9223372036854775807
__int64µÄ×îСֵ£º-9223372036854775808
unsigned __int64µÄ×î´óÖµ£º18446744073709551615
ÎҵĵçÄÔ¶Ô__int128²»Ö§³Ö£¬Õâ¸ö¿ÉÄÜÊÇÔ¤Áô¸ø½«À ......
3.3 ¸ßЧÂÊ¿ª·¢
ÕâÒ»½Ú½éÉÜÀûÓõ¥Ôª²âÊÔʵÏÖ¸ßЧÂÊ¿ª·¢¡£µ¥Ôª²âÊÔ¿ÉÒÔÔÚ¼¸¸ö·½ÃæÌá¸ß¿ª·¢Ð§ÂÊ£º²âÊÔÇý¶¯¿ª·¢¡¢¿ÉÊÓ±à³Ì¡¢¿ìËÙÅÅ´í¡¢ºÍÌá¸ßµ÷ÊÔЧÂÊ¡£
²âÊÔÇý¶¯¿ª·¢
Ö¸Ïȱàд²âÊÔ´úÂ룬ȻºóÔÙ±àд²úÆ·´úÂëʹ²âÊÔͨ¹ý£¬ÓкܶàÏà¹ØÎÄÕºÍÊé¼®½éÉÜÕâ·½ÃæÖªÊ¶£¬ÏÞÓÚ±à·ù£¬ÕâÀï¾Í²»½²ÁË ......
Èç×ªÔØ£¬Çë×¢Ã÷³ö´¦£º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 * ......
ûÏëµ½ ûÏëµ½ ÍòÍòûÏëµ½
¶ÔC++°ËÇÏֻͨÁË7ÇϵÄÎÒ£¬¾¹È»Òª¿ªÊ¼¸ãc++Á˵Ä˵£¬ÕæÊǺò»´Ì¼¤¡£
²»¸ÒÏàÐÅ£¬²»¸ÒÏàÐÅ¡£
ÀàÐÍÊÇÊ²Ã´ÍæÒ⣿ÀàÔõôд£¿×Ö·û´®Ôõô´¦Àí£¿ÔõôÊÍ·ÅÄڴ棿
ż²»Öª£¬²»Öª£¬ÕæµÄ²»Öª¡£¡£¡£¡£
°¥ Íê¶¼ÍêÁË¡£
°¦ ²»¹ÜÔõô˵¶¼ÒªÈ¥Ñ§µÄ¡£¡£¡£Ò»µãÕÞ¶¼Ã»ÓÐ
#incl ......
[root@ocsser file]# cat array-05.c
//this is a program for two juzheng xiangcheng.
#include <stdio.h>
int main(){
int i,j,m,n;
int g,k,f;
int c[5][6];
& ......