Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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»È·¶¨µÄ




Ïà¹ØÎÊ´ð£º

c¾²Ì¬±àÒëÁíÒ»¸öÎļþ¼ÐµÄ¿âº¯Êý - C/C++ / CÓïÑÔ

ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......

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

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

Çë´ó¼ÒÖ¸µãÒ»ÏÂC/S½á¹¹µÄ·ÖÒ³Á÷³Ì - .NET¼¼Êõ / C#

´ó¼ÒºÃ£¬ÎÒÊÇÐÂÊÖ£¬¸Õ¿ªÊ¼½Ó´¥C/S½á¹¹µÄ³ÌÐò£¬ÏëҪʵÏÖÒ»¸ö·ÖÒ³¹¦ÄÜ£¬´ó¼ÒÓÐûÓкõãµÄ·ÖÒ³¿Ø¼þ»òÕß³ÌÐòÖ®ÀàµÄ£¬µ±È»Ô´³ÌÐò¸üºÃ£¬·ñÔò˵˵Á÷³ÌÒ²¿ÉÒÔ£¬Ð¡Ãü±°¡£¬ÔÚÏߵȡ£¡£¡£¡£
´ó¼Ò°ï°ï棬лÁË£¡

×Ô¼ºÐ´Ñ½£¡ ......

C# SQL µÄUPDATETEXT ÎÊÌâ - .NET¼¼Êõ / C#

A±í ÓÐÁ½¸ö×ֶΠ
  id ΨһÊý×ÖÓò
  InfoTxt text ÀàÐÍ
 ÎÒÏÖÔÚÒª°Ñ id ²»ÊÇ14 µÄËùÓÐ InfoTxt×ֶΠÎı¾ºóÃæ ¶¼¼ÓÉÏ 'aaa' 
°´ÏÂÃæÖ´ÐÐÏÂÀ´ Ö»Óбí×îºóÒ»ÐмÓÉÏÁË 'aaa' ......

Ò»¸öcСÎÊÌ⣨²ËÄñÌáÎÊ£© - C/C++ / CÓïÑÔ

ÎÒˮƽºÜ²Ë£¬ÌáÎʵĹÀ¼ÆÒ²ºÜ¸ãЦ£¬ºÇºÇ£¬¸ßÊÖ¼ûÁ¡£
ÎÒÔÚ´úÂëÀïÃæÌí¼ÓÁËÒ»¸ö.cÎļþA£¬ÀïÃæÓÐÒ»¸öº¯Êýf£¬È»ºóÎÒÔÚÁíÍâÒ»¸ö.cÎļþBÖе÷Óô˺¯Êýf£¬µ«ÊÇ£¬BÎļþÖв¢Ã»Óаüº¬¶Ôº¯ÊýfµÄÉùÃ÷£¬Ò²¾ÍÊÇ˵ûÓаüº¬ÎļþAµÄ.h£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ