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

´Ó±àд¿çƽ̨³ÌÐò̸CºÍC++

    ¹¤×÷ºóÎÒ×ÐϸÔĶÁÁ˹«Ë¾µÄ3DÒýÇæµÄÔ´´úÂ룬ÕâÊÇ¿îά»¤ÁËÊ®¼¸ÄêµÄÒýÇ棬Ö÷ÒªÔËÐÐÔÚXBox, PS3ºÍPCƽ̨ÉÏ¡£ºËÐIJ¿·ÖÓÃCÓïÑÔд£¬ÆäËû²¿·Ö×é¼þÓÃC++±àд¡£ÎÒÒÔÇ°ºÜÉÙÓÃCÓïÑÔ±à³Ì(°Ý´óѧ½ÌÓýËù´Í)£¬µ«¶ÁÁËÌ«¶àÕâ¿îÒýÇæµÄ´úÂëÉîÉîµÄÖÐÁËCÓïÑԵĶ¾¡£C¸øÎҵĸоõ¾ÍÊǼòµ¥Ã÷ÁË£¬Òª½â¾öÎÊÌâ¾ÍÊÇÖ±½ÓÈ¥½â¾öËü£¬¾ø²»¹ÕÍäĨ½Ç£¬³ÌÐòԱÿһ¿Ì¶¼ÖªµÀ×Ô¼ºÔÚ¸Éʲô¡£C++Ïà±ÈÆðÀ´¾ÍÊDz»Í£µÄ³éÏó³éÏóÔÙ³éÏ󣬳鵽×îºó¶¼²»ÖªµÀÒª½â¾öµÄÎÊÌâÊÇʲôÁË£¬Ò»¸ö¼òµ¥µÄÎÊÌâÍùÍùÓø´Ôӵļ¼Êõ»ò¼¼ÇÉÈ¥½â¾ö(ÕâÊǺܶàÈË¿ÚÖÐÀÏÊǹÒ×ŵģºÉè¼Æ)¡£C++¸øÈËÃǹàÊäµÄ˼ÏëÊÇ´úÂëÖØÓ㬿ÉC++³ÌÐòÔ±ÈÔÒª²»Í£µÄÐ޸ĴúÂë¡£ÎÒ²¢²»ÊÇÈ¥Ö¸ÔðC++²»ºÃ£¬Ö»ÊÇ¿´¶àÁËCµÄ´úÂëÒý·¢µÄ˼¿¼¡£ÏÂÃæ¾Í̸̸ÈçºÎд¿çƽ̨³ÌÐò£¬±È½ÏÏÂCºÍC++д¿çƽ̨³ÌÐòµÄ²»Í¬¡£
   C++ÖÐͨ³£ÊÇдһ¸ö³éÏóµÄÀà³éÏó³öÓëƽ̨Î޹صĽӿڣ¬È»ºóÕë¶Ô²»¶Ôƽ̨д²»Í¬µÄ×ÓÀà¡£¿Í»§¶Ëµ÷ÓÃʱ¸ù¾Ýµ±Ç°µÄƽ̨
Ñ¡Ôñ´´½¨²»Í¬µÄ×ÓÀ࣬¶ø¿Í»§¶ËµÃµ½Ê±»ùÀàµÄÖ¸Õë¡£´Ó¶øʵÏÖ¿Í»§¶ËÎÞÐèÖªµÀµ±Ç°µÄƽ̨£¬´úÂë´óÖÂÈçÏ£º
class RENDER; //render.h
class RENDER_WIN32D3D : public RENDER; //render_wind3d.h
class RENDER_PS3 : public RENDER; //render_ps3.h
class RENDER_XBOX : public RENDER;//render_xbox.h
//client code
RENDER* renderer = null;
#ifdef __WIN32D3D__
#include "render_wind3d.h"
render = new RENDER_WIN32D3D;
#endif
#ifdef __PS3__
#include "render_ps3.h"
render = new RENDER_PS3;
#endif
#ifdef __XBOX__
#include "render_xbox.h"
render = new RENDER_XBOX;
#endif
RENDERÀàÖлáÓÐЩBeginFrameºÍEndFrameÖ®ÀàµÄ´¿Ð麯Êý£¬È»ºó×ÓÀà±ØÐëÌṩµ±Ç°Æ½Ì¨µÄʵÏÖ¡£¶øÍâRENDERÀ໹»áÓÐЩ¸÷ƽ̨¹²ÓõÄÊôÐÔ¡£
    ÄÇCÓïÑÔдÕâ¸öRENDERÊÇÈçºÎдµÄÄØ£¿Çë¿´´úÂ룺
//render.h
struct RENDER;
void Render_BeginFrame();
void Render_EndFrame();
//render_wind3d.c
struct RENDER
{
...
};
void Render_BeginFrame(RENDER*){ ... }
void Render_EndFrame(RENDER*){ ... }
//render_ps3.c ºÍ render_xbox.cͬÉÏ£¬Ö»ÊǶÔstruct RENDERºÍÄÇÁ½
//¸öº¯ÊýʵÏÖ²»Ò»Ñù¶øÒÑ¡£
//client code
RENDER renderer = new RENDER;
 
ÔÚ±àÒëʱ¸ù¾ÝÄ¿±êƽ̨ѡÔñrender_xxx.c±à½øÈ¥¾ÍOKÁË¡£
    ÓÉ´ËÎÒÃÇ¿ÉÒÔ¿´³öCºÍC++ÔÚ±àд¿çƽ̨³ÌÐò


Ïà¹ØÎĵµ£º

º½¿Õ¹«Ë¾¹ÜÀíϵͳ(VC++ ÓëSQL 2005)

ϵͳ»·¾³£ºWindows 7
Èí¼þ»·¾³£ºVisual C++ 2008 SP1 +SQL Server 2005
±¾´ÎÄ¿µÄ£º±àдһ¸öº½¿Õ¹ÜÀíϵͳ
      ÕâÊÇÊý¾Ý¿â¿Î³ÌÉè¼ÆµÄ³É¹û£¬ËäÈ»³É¼¨²»¼Ñ£¬µ«ÊÇ×÷ΪÎÒÓÃVC++ ÒÔÀ´±àдµÄ×î´ó³ÌÐò»¹ÊÇ´«µ½ÍøÉÏ£¬ÒÔ¹©²Î¿¼¡£ÓÃVC++ ×öÊý¾Ý¿âÉè¼Æ²¢²»ÈÝÒ×£¬µ«Ò²²»ÊDz»¿ÉÄÜ¡£ÒÔÏÂÊÇÎҵijÌÐò½çÃ棬ºóÃæ ......

¡¾×ª¡¿¡¾C\C++ÓïÑÔÈëÃÅƪ¡¿ HelloWorld˼¿¼

µÚһƪÎÄÕÂÖÕÓÚÂä±ÊÁË£¬±¾ÎĽ«´Ó˼¿¼µÄ½Ç¶ÈÈ¥ÖØÐÂÈÏʶһÏÂHelloworld¡£ÔÚÀý×ÓÖ®ºó»áÌá³ö²»Í¬µÄÎÊÌ⣬Òýµ¼´ó¼Òȥ˼¿¼Ã¿Ò»¾äÄËÖÁÿ¸öϸ½Ú¡£Í¬Ê±Ï£ÍûÄܹ»Èôó¼ÒÒÔºóÄܹ»ÒÔ²»¶Ï˼¿¼²»¶ÏÌáÎʵķ½Ê½È¥¿´´ý×Ô¼ºµÄ³ÌÐò¡£ÎÒÏàÐÅ´ó¼Ò»á·¢ÏֺܶàеĶ«Î÷£¬ºÃÁËÇÐÈëÕýÌâ¡£
ÎÒÃÇÿѧһÖÖеÄÓïÑÔ»ù±¾¶¼»á´Óhelloworld¿ªÊ¼£¬»ù±¾Ã¿ÖÖÓïÑÔ ......

linux c ÕýÔò±í´ïʽ

×î½üÓÐÕâô¸öÐèÇó,
c¸ã¸ãÕýÔò,
±Ï¾¹Regular Expression soÇ¿´ó^_^
±ê×¼µÄCºÍC+
+
¶¼²»Ö§³ÖÕýÔò±í´ïʽ£¬µ«ÓÐһЩº¯Êý¿â¿ÉÒÔ¸¨ÖúC/
C+
+
³ÌÐòÔ±Íê³ÉÕâÒ»¹¦ÄÜ£¬ÆäÖÐ×îÖøÃûµÄµ±ÊýPhilip HazelµÄPerl-
Compatible Regular Expression¿â£¬Ðí¶àLinux·¢Ðа汾¶¼´øÓÐÕâ¸öº¯Êý¿â¡£
±àÒëÕýÔò±í´ïʽ
ΪÁËÌá¸ßЧÂÊ£¬ÔÚ½«Ò»¸ö× ......

Åú´¦Àí µ÷ÊÔC/C++ʱɾ³ýÎÞÓõÄÎļþ

@echo --------------------- ÓÃÓÚ¡¶Ò»¸ö²Ù×÷ϵͳµÄʵÏÖ¡·µÄ cmd ---------------------
@echo off
mode con cols=80 lines=60 ::Ç°Ò»¸öÊý×Ö»ò×ÖĸΪ±³¾°É«£¬ºóÒ»¸öÊý×Ö»òÕß×ÖĸΪǰ¾°É«£¬ÏÂÃæÊÇһЩÑÕÉ«¶ÔÓ¦µÄÊý×Ö»ò×Öĸ£º
::0£½ºÚ¡¢1£½À¶¡¢2£½ÂÌ¡¢3£½Ç³ÂÌ¡¢4£½ºì¡¢5£½×Ï¡¢6£½»Æ¡¢7=°×¡¢8=»Ò¡¢9=µ­À¶¡¢A£½µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ