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

C´úÂëÇó×¢ÊÍ ¹ØÓڹؼü×Önew - C/C++ / CÓïÑÔ

/*
 * structures
 */
//C++´úÂëÇó×¢ÊÍ,ºìÉ«²¿·Ö
/*
 * DBLNODE - a node in a generic doubly-linked list
 */
typedef struct _DBLNODE
{
  struct _DBLNODE FAR *next; // link to next node
  struct _DBLNODE FAR *prev; // link to previous node
  SHORT type; // type of object
  double posx, posy; // actual x and y position
  double velx, vely; // x and y velocity (pixels/millisecond)
  double frame; // current frame
  double delay; // frame/millisecond
  RECT src, dst; // source and destination rects
  LPDIRECTDRAWSURFACE surf; // surface containing bitmap
} DBLNODE;
typedef DBLNODE FAR *LPDBLNODE;

DBLNODE DL; // Display List

//ÏÂÃæµÄ´úÂëÎÒ²»ÊǺÜÀí½â£¬ÖصãÊÇnew²»Àí½â¡£Çë¸ßÈËÖ¸½Ì¡£
void linkObject( LPDBLNODE new )
{
new->next = DL.next;
new->prev = &DL;
DL.next->prev = new;
DL.next = new;
}

void linkLastObject( LPDBLNODE new )
{
new->prev = DL.prev;
new->next = &DL;
DL.prev->next = new;
DL.prev = new;
}

CÀïÃæÓÐnewÕâ¸ö¹Ø¼ü×ÖÂð£¿

Õâ¸önewÊǸö±äÁ¿£¬×ö²ÎÊý´«µÝÓõİɡ£µ«ÊÇÓе㲻Ã÷°×£¬¹Ø¼ü×Önew²


Ïà¹ØÎÊ´ð£º

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

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

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

C/C++ÀïÆÁshift+f10¼üÒªÔõôд£¡ - C/C++ / C++ ÓïÑÔ

SHIFT¼ÓF10ÓëÄǸö¼üÓÒctrl±ßÉϵÄÄǸö¼ü¹¦ÄÜÒ»Ñù£¬ÏëÆÁÕâ¸ö
µ«²»ÖªÒªÔõôдÄǸö×éºÏ¼ü£¡
ÓÐûÄĸö´óÏÀ·ÅÒ»¶ÎÕâ¸öµÄ´úÂë»òдһ¶Î
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html ......

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Öж¨ÒåµÄ·½·¨ ......

Ϊʲô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[] ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ