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

CÖÐÈçºÎÅжÏdoubleÐÍÊý×éΪ¿Õ - C/C++ / CÓïÑÔ

[align=center][/align]CÓïÑÔÖÐÈçºÎÅжÏÒ»¸ödoubleÐ͵ÄÊý×飨Èçdouble S[20]£»£©ÊÇÒ»¸ö¿ÕÊý×飬¼´Êý×éÖÐûÓзÅÈκÎÖµ¡£
û°ì·¨¡£

"ÈκÎÖµ" µÄ¶¨Òå?

¾ÍÊÇÊý×éÊǿյģ¬Ã»ÓÐΪËü¸³Öµ


¿ÉÒÔ¿¼ÂÇÓÃÒ»¸ö±ê¼Ç£¬³õʼflag=0£¬¸³Öµºóflag=1£¬ÓÃflagÅжÏ

ÒýÓÃ

¾ÍÊÇÊý×éÊǿյģ¬Ã»ÓÐΪËü¸³Öµ

ÄãûÓÐΪËü¸³Öµ²»´ú±íËüûÓÐÖµ¡­¡­

ËùÒÔÄãÕâ¸öÇ°Ìá¾ÍÊDz»´æÔڵġ­¡­

»áΪËü¸³Öµ£¬¸³ÍêÖµºóÅжÏËüÊÇ·ñΪ¿Õ

Êý×éûÓÐÓÐûÓÐÖµµÄ¸ÅÄî
Ö»ÓÐÓÐЧֵºÍÎÞЧֵµÃ¸ÅÄî

ÒýÓÃ

»áΪËü¸³Öµ£¬¸³ÍêÖµºóÅжÏËüÊÇ·ñΪ¿Õ

Õâ¸öËùν¡°Îª¿Õ¡±µÄ״̬£¬ÓïÑÔûÓж¨Ò壬ÄãҲûÓиø³ö×Ô¼ºµÄ¶¨Òå¡£

ÄÇÄ㾿¾¹ÊÇÒªÅжÏʲôÄØ£¬Äã×Ô¼ºÖªµÀô£¿

ÒýÓÃ
»áΪËü¸³Öµ£¬¸³ÍêÖµºóÅжÏËüÊÇ·ñΪ¿Õ

¸³ÖµÊÇͨ¹ýÑ­»·¿ØÖÆÀ´¸³Öµ°É¡£
Ñ­»·¿ØÖÆÐèÒªÒ»¸öϱ꣬Èç
int i = 0;
³õʼ»¯Îª0£¬
ͨ¹ýÑ­»·¸³Öµ:
for(i = 0; i < nLen; i++) {
  ...
}
ÕâÑùÒ»µ©ÓÐÒ»²¿·Ö½øÐÐÁ˸´ÖÆ£¬i¾Í¿Ï¶¨´óÓÚ0ÁË¡£
ÓÃÕâ¸ö×÷Ϊ±êÖ¾À´ÅжÏÊý×éÊÇ·ñΪ¿Õ.
²»ÖªµÀÂ¥Ö÷ÊDz»ÊÇÕâ¸öÒâ˼¡£

ÊÇÕâÑùµÄ£¬Òª´Ó´«¸ÐÆ÷½ÓÊÕÊý¾Ý·ÅÈëÒ»¸öÊý×éÖУ¬µ«ÊÇͨÐÅͻȻÖжÏÁË£¬Òò´ËÄǶÎʱ¼äÊý×éÖÐÊÇûÓÐÊý¾ÝµÄ¡£ÏÖÔÚÏëͨ¹ýÊý×éÊÇ·ñΪ¿Õ·´¹ýÀ´ÅжÏͨÐÅÊÇ·ñÖжÏ


ÒýÓÃ
ÒýÓà 6 Â¥ yueliangshumoon µÄ»Ø¸´:
»áΪËü¸³Öµ£¬¸³ÍêÖµºóÅжÏËüÊÇ·ñΪ¿Õ

¸³ÖµÊÇͨ¹ýÑ­»·¿ØÖÆÀ´¸³Öµ°É¡£


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

Çó½Ìc/c++ÓïÑÔÏà¹ØÎÊÌâ - C/C++ / CÓïÑÔ

ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......

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

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

c/sºÍb/sÖ®¼äÔõôͨѶ. - Java / Web ¿ª·¢

ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾­ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾ­Ìá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ