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

СCµÄÎÊÌâ¹þ

C/C++ code:
#include <stdio.h>
typedef struct node{
int *key;
int length;
}node;
void insert(node &temp,int n)
{
int i,j;
for(i=0;i<=temp.length;i++)
{
if(n>temp.key[i])
break;
}
temp.length++;
for(j=temp.length;j>i;j--)
temp.key[j]=temp.key[j-1];
temp.key[i]=n;
return ;
}
int main()
{
node a,*p;
int i,j,n;
a.length=0;
for(i=2,j=0;i<=20;i+=2,j++)

{
a.key[j]=i;
a.length++;

}
insert(a,11);
for(i=0;i<=a.length;i++)
printf("%d \t",a.key[i]);
return 0;

}

ʲôÎÊÌâ°¡£¿


ÒýÓÃ
ʲôÎÊÌâ°¡£¿


²»ÄÜÔËÐÐÈö£¬ÄÚ´æ³ö´í

ûÓиøa.key·ÖÅä¿Õ¼ä°¡

ÒýÓÃ
ûÓиøa.key·ÖÅä¿Õ¼ä°¡

¡¡ÎҸоõKEY¾ÍÊÇÒ»¸öÖ¸Õë°¡£¬²»Ó÷ÖÅäÁË°¡¡¡keY+1Ö¸ÏòÏÂÒ»¸öµØÖ·

keyÊÇÖ¸Õ룬µ«²»ÄÜÄÇÑùÓð¡
keyÊÇûÓгõʼ»¯£¬ËùÒÔkeyÖ¸ÏòÄĸù±¾¾Í²»È·¶¨£¬»¹¼Óɶ°¡
¾ÍÏñ±äÁ¿int i;Èç¹ûºóÃæÖ±½ÓÓõĻ°iµÄÖµÒ²ÊDz»È·¶¨µÄ

ÒýÓÃ
keyÊÇÖ¸Õ룬µ«²»ÄÜÄÇÑùÓð¡
keyÊÇûÓгõʼ»¯£¬ËùÒÔkeyÖ¸ÏòÄĸù±¾¾Í²»È·¶¨£¬»¹¼Óɶ°¡
¾ÍÏñ±äÁ¿int i;Èç¹ûºóÃæÖ±½ÓÓõĻ°iµÄÖµÒ²ÊDz»È·¶¨µÄ




Ïà¹ØÎÊ´ð£º

Ϊʲôxml²»ÄÜÏÔʾ°¢À­²®ÎÄ - C/C++ / C++ ÓïÑÔ

ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À­²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À­²®ÎĵÄ×Ö¿âÄãÓÐô£¿

ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......

ÇóÖú£ºC´úÂëchange toVB´úÂë - VB / »ù´¡Àà

ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó­¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......

c# Winform ´¥ÃþÆÁ³ÌÐò - .NET¼¼Êõ / C#

¹«Ë¾¿ª·¢Ò»¸ö´¥ÃþÆÁ³ÌÐò£¬ÎÒ¸ºÔðµÄÒ»¿é£¬ÊµÏÖÕâÑùÒ»¸ö¹¦ÄÜ£¬µ±Êó±êµã»÷´°¿ÚÖÐͼƬ£¨Ò»ÕÅͼ·Ö³É¼¸²¿·Ö£©µÄÆäÖÐÒ»²¿·Öʱ£¬½«Õⲿ·ÖͼƬ½ØÈ¡³öÀ´£¬µ¯³öеĴ°¿Ú£¬½«½ØÈ¡³öµÄͼƬÏÔʾ³öÀ´¡£ÎÒʹÓÃRectangeÀà¿ØÖÆÁË·µ»Ø£¬ ......

¸ÕѧÍêCµÄ»ù´¡£¬ÇóÏÂÒ»²½ - C/C++ / CÓïÑÔ

ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë 
Äã²»Àí½âÖ ......

c# listviewÌí¼ÓºÏ¼ÆÐÐ - .NET¼¼Êõ / C#

ÓÃlistviewÏÔʾ³ö´ÓÊý¾Ý¿âÖвéѯ³öµÄ¼Ç¼£¬ÏëÔÚ×îºó¼Ç¼ºóÃæÌí¼ÓÒ»ÌõºÏ¼ÆÐУ¬ÈçºÎʵÏÖ£¡Ð»Ð»´ó¼Ò£¡
°ó¶¨Êý¾ÝÄãÓ¦¸ÃûÎÊÌâ°É£¬°ó¶¨ÍêÒÔºóÓÃÒ»¸öÑ­»·°ÑÄãҪͳ¼ÆÊý¾ÝµÄÁÐÖеÄÊý¾Ý×ܺÍÓÃÒ»¸ö±äÁ¿½ÓÊÜ£¬È»ºóÔÚÑ­»·ÍâÃæne ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ