上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 216 下一页

2013年12月24日

Windows Azure 安全最佳实践 - 第 6 部分:Azure 服务如何扩展应用程序安全性

摘要: 多种 Windows Azure服务可以帮助您将应用程序安全性扩展到云。 有三种服务可提供多个提供程序之间的身份标识映射、内部部署数据中心间的连接和相互发送消息的应用程序功能(无论应用程序位于何处)。 · 使用Windows Azure Active Directory,您可以通过位于云中的... 阅读全文

posted @ 2013-12-24 13:29 三少爷的剑123 阅读(174) 评论(0) 推荐(0)

cocos2d-x游戏开发系列教程-坦克大战游戏之子弹和地图碰撞

摘要: 上篇文章实现了坦克与地图碰撞的检测,这篇我们继续完成子弹和地图的碰撞检测。1.先设计一个子弹类Bullet,如下所示:class Bullet : public CCSprite{public: Bullet(); ~Bullet(); static Bullet* createBulletWit... 阅读全文

posted @ 2013-12-24 10:08 三少爷的剑123 阅读(341) 评论(0) 推荐(0)

2013年12月23日

cocos2d-x游戏开发系列教程-坦克大战游戏之坦克和地图碰撞的检测下

摘要: 上篇我们完成了地图的信息获取和碰撞检测,这篇我们整合到程序中。在这之前我们改造一下Tank类,使它更加模块化,共容易理解:1.改造后的Tank类声明如下:class Tank : public CCSprite{public : Tank(); ~Tank(); static Tank* crea... 阅读全文

posted @ 2013-12-23 11:38 三少爷的剑123 阅读(220) 评论(0) 推荐(0)

cocos2d-x游戏开发系列教程-坦克大战游戏之坦克和地图碰撞的检测上

摘要: 在上篇我们可以控制坦克在地图上任意行走了,但是实际游戏中遇到墙就应该是无法走动的,这节课我们继续完善程序,让他能在地图检测到墙壁,而无法通过。1.我们新建一个TileMapInfo类,来获取地图信息。class TileMapInfo{public: bool collisionTest(CCRe... 阅读全文

posted @ 2013-12-23 11:01 三少爷的剑123 阅读(333) 评论(0) 推荐(0)

2013年12月22日

基于visual Studio2013解决面试题之1503最大公约数最小公倍数

摘要: 题目解决代码及点评/* 求两个或 N 个数的最大公约数(gcd)和最小公倍数(lcm)的较优算法*/#include using namespace std;int Gcd(int a, int b){ if (a < b) { swap(a, b); } ... 阅读全文

posted @ 2013-12-22 23:33 三少爷的剑123 阅读(198) 评论(0) 推荐(0)

基于visual Studio2013解决面试题之1409基数排序

摘要: 题目解决代码及点评/* 基数排序 */#include #include #include #include void PrintArr(int *pnArr, int nLen){ for (int i = 0; i = 0; i--) { nArrR[pnArrTmp[pnArr[i... 阅读全文

posted @ 2013-12-22 23:30 三少爷的剑123 阅读(181) 评论(0) 推荐(0)

基于visual Studio2013解决面试题之1408桶排序

摘要: 题目解决代码及点评/* 桶排序*/#include#include#define SIZE 100void bucket_sort(unsigned *,int);//桶排序函数的原型void print(unsigned *,int);//打印函数的原型int main(){ unsign... 阅读全文

posted @ 2013-12-22 23:24 三少爷的剑123 阅读(131) 评论(0) 推荐(0)

基于visual Studio2013解决面试题之1207堆排序

摘要: 题目解决代码及点评/* 堆排序*/#include #include #include #include void PrintArr(int *pnArr, int nLen){ for (int i = 0; i pnArr[i]) { nMaxPos = LChild; } else... 阅读全文

posted @ 2013-12-22 23:18 三少爷的剑123 阅读(124) 评论(0) 推荐(0)

基于visual Studio2013解决面试题之1405归并排序

摘要: 题目解决代码及点评/* 归并排序*/#include using namespace std;const int N=10;int anthor[N];void MergeSort(int *array,int begin,int end){ if(end-begin>1) { // M... 阅读全文

posted @ 2013-12-22 23:10 三少爷的剑123 阅读(151) 评论(0) 推荐(0)

基于visual Studio2013解决面试题之1404希尔排序

摘要: 题目解决代码及点评/* 希尔排序*/#include using namespace std;const int N=10;void shell_sort(const int len, int *array){ int j,i,key; int gap=0; if( len 0 ) ... 阅读全文

posted @ 2013-12-22 22:52 三少爷的剑123 阅读(164) 评论(0) 推荐(0)

上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 216 下一页

导航