ÓÃCдµÄ3DÃÔ¹¬
Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸еģ¬»î»î»î£¡
Tips£ºÉÏÏÂ×óÓÒ¼ü¿ØÖÆÇ°½øºóÍËתÏò£¬¿Õ¸ñ¼üÇл»¸©ÊÓͼ£¬Êó±êÓÒ¼ü¸ü»»µØͼ£¨ËäȻֻдÁËÁ½
¸ö……£© ¼ÓÁ˵ãÒôÀÖ£¬ÃâµÃÌ«¹ýµ¥µ÷¡£
Ч¹ûͼ£º
#include<stdlib.h>
#include<stdio.h>
#include<GL/glut.h>
#include<GL/glaux.h>
#include<math.h>
#include<windows.h>
#pragma comment(lib, "glaux.lib")
#define PX_START 1.5
#define PY_START 1.5
#define UNITSTEP 0.2
#define ANGLE_START -45
GLuint Texture = 0 ;
float px = PX_START ;
float py = PY_START ;
int angle = ANGLE_START ; //ÐÐ×ß·½Ïò
int dir_x ; //ÐÐ×ß·½ÏòÏòÁ¿
int dir_y ;
int MAP_SIZE = 16 ;
char **map ;
int globalView = 0 ; //ÊÇ·ñ²é¿´¸©ÊÓͼ
char *map1[16] =
{
"HHHHHHHHHHHHHHHH",
"H H H",
Ïà¹ØÎĵµ£º
#include<stdio.h>
#include<math.h>
#define u 20
int i,j,n,m;
float Ix[u],I[u][u],H_X,H_Y,H_XY,I_XY,H_XpY,Pypx[u][u],Px[u],H_YpX,Py[u],Pxpy[u][u],Pxy[u][u];
/*¶¨ÒåµÄIx[]=I(x[i])×ÔÐÅÏ¢£»I[][]=I(x[i];y[j])»¥ÐÅÏ¢£»H_X=H(X)ƽ¾ù×ÔÐÅÏ¢£»H_XY=H(XY)ÁªºÏìØ;
I_XY=I(X;Y)ƽ¾ù»¥ÐÅÏ¢£»H_XpY=H(X|Y ......
ÔÚVSÖÐдSQLÓï¾äµÄʱºò£¬Ç§ÍòÍòǧҪСÐÄÔÙСÐÄ£¬±ÈÈç ˵ Êý¾ÝÀàÐ͵ÄÆ¥Å䣬 µ¥ÒýºÅ£¨Õâ¸öÄÜ°ÑÈËÃÔËÀ£©
where ×Ó¾äÖпÉǧÍò²»ÄÜÓпոñ£¨µ±²éѯÌõ¼þΪ×Ö·û´®µÄʱºòÄÜ°ÑÄãŪ·è£¬ÎÒŪÕâ¸öµÄʱºò¶¼·èÁ˼¸´ÎÁË£¬Ê²Ã´¶¼¶Ô¾ÍÊDz鲻³öÀ´£¬µ÷ÊÔÁËN±é²Å·¢ÏÖ¡££©²»ÐÐÁË£¬³Ô·¹È¥£¬ÔÙ²»³Ô¿´¼û»îÈ˶¼ÏëÒ§ÁË¡£ ......
È¥ÁËÌËC¹«Ë¾INTviewÁËһϣ¬Ê±¼äÓеã¾ÃÁË£¬¸Ã°ÑһЩÊÕ»ñÕûÀíÒ»ÏÂÁË£¬ÃâµÃÒÔºóÔÙ·¸¡£ 1, ¸öÐÔÐÔ¸ñ·½ÃæµÄÌáÎÊÀýÈ磺¸öÈËȱµã£¬ÎªÊ²Ã´¾õµÃ×Ô¼º±È±ðÈËʤÈι¤×÷£¬¸öÈË×îÂúÒâµÄʵȵÈÖ®À࣬ҪÈÏÕæµÄ×¼±¸Ò»Ï¡£ 2£¬C¹«Ë¾µÄ¼¼ÊõÈËÔ±²Î²î²»Æ룬²îµãµÄºÜ¿´ÖØÄãµÄ×ö¹ýµÄÏîÄ¿¾Ñ飬¶øÇÒÒÔÊýÁ¿È¡Ê¤£¬ÕâÒ²¸ø×¼±¸ÃæÊÔµÄͬѧÌáÁ˸öÐÑ£¬²»Ò ......
ÓÃlinux C ϵĺ¯Êýµ÷Óô´½¨ÖÐÎÄĿ¼¡¢ÎļþµÈ£¬×Ö·û´®µÄ±àÂë¸ñʽҪÇóÊÇutf-8¸ñʽµÄ¡£
±ÈÈçÏëҪʹÓà int mkdir(const char *pathname, mode_t mode); ´´½¨Ò»¸öÖÐÎĵÄĿ¼¡£ÄÇôpathnameµÄ±àÂë¸ñʽҪÇóÊÇutf-8µÄ£¬¶ø²»ÄÜÊÇgb3212/gbkµÄ£¬·ñÔò¾ÍÊÇÂÒÂë¡£
ÄÇôÈç¹ûlinux CÏÂÈçºÎ½øÐÐgbk<---->utf-8±àÂëת»»µÄ±àÂë×°»»µÄ ......
CÓïÑÔËùÓи´ÔÓµÄÖ¸ÕëÉùÃ÷£¬¶¼ÊÇÓɸ÷ÖÖÉùÃ÷ǶÌ×¹¹³ÉµÄ¡£ÈçºÎ½â¶Á¸´ÔÓÖ¸ÕëÉùÃ÷ÄØ£¿ÓÒ×ó·¨ÔòÊÇÒ»¸ö¼ÈÖøÃûÓÖ³£Óõķ½·¨¡£²»¹ý£¬ÓÒ×ó·¨ÔòÆäʵ²¢²»ÊÇC±ê×¼ÀïÃæµÄÄÚÈÝ£¬ËüÊÇ´ÓC±ê×¼µÄÉùÃ÷¹æ¶¨ÖйéÄɳöÀ´µÄ·½·¨¡£C±ê×¼µÄÉùÃ÷¹æÔò£¬ÊÇÓÃÀ´½â¾öÈçºÎ´´½¨ÉùÃ÷µÄ£¬¶øÓÒ×ó·¨ÔòÊÇÓÃÀ´½â¾öÈçºÎ±çʶһ¸öÉùÃ÷µÄ£¬Á½Õß¿ÉÒÔ˵ÊÇÏà·´µÄ¡£ÓÒ×ó·¨Ôò ......