自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

易水寒

不积跬步,无以至千里

  • 博客(28)
  • 资源 (38)
  • 收藏
  • 关注

原创 cocos2d 中使用jni Java 调用 C++ 方法

1.首先是LoadLibrarycocos2d中的C++代码会编译成一个.so文件,放在安卓目录下的libs/armeabi 下,然后java会load进来,这步我们不用做了,因为cocos2d已经帮我们做好了。package cb.CbCCBLE;public class CbCCBLECentralManager { public static final String TA

2015-03-18 16:36:29 1872

原创 cocos2d 中使用jni C++ 调用 Java 方法

1.简单例子假设我们Java中有这么一个open的静态方法,它没有参数,有一个int的返回值。怎么在C++中调用它呢?package cb.CbCCBLE;public class CbCCBLECentralManager { public static final String TAG = "CbCCBLECentralManager Android"; public sta

2015-03-18 16:33:56 1986 1

原创 LeetCode Length of Last Word

1. 题目Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defi

2015-03-17 15:20:30 1303

原创 LeetCode Number of 1 Bits

1.题目Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 00000000

2015-03-15 19:19:24 4208

原创 LeetCode Best Time to Buy and Sell Stock

1.题目Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),

2015-03-15 15:18:29 1200

原创 LeetCode Find Peak Element

1.题目A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks, in that

2015-03-15 15:04:26 1284

原创 LeetCode Sort Colors

1.题目Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the integers

2015-03-14 21:56:47 1236

原创 LeetCode Remove Element

1.题目Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't matter what you leave beyond the new length.2.解决方

2015-03-13 21:25:18 1277

原创 LeetCode Find Minimum in Rotated Sorted Array

1.题目Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).Find the minimum element.You may assume no duplicate exists in the array.

2015-03-13 20:40:59 1011

原创 LeetCode Majority Element

1.题目Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element al

2015-03-12 20:42:36 1204

原创 LeetCode Maximum Subarray

1.题目Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [−2,1,−3,4,−1,2,1,−5,4],the contiguous subarray [4,−1,2,1] has

2015-03-12 10:20:03 1469 2

原创 LeetCode Binary Tree Inorder Traversal

1.题目Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3,2].Note: Recursive solution is trivial, coul

2015-03-09 10:48:31 1104

原创 LeetCode Unique Binary Search Trees

1.题目Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1 \

2015-03-08 20:07:54 1297

原创 LeetCode Excel Sheet Column Number

1.题目Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 2.解决方案class Solu

2015-03-08 17:41:18 1259

原创 LeetCode Excel Sheet Column Title

1.题目Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 2.解决方案1class

2015-03-08 17:36:23 1352

原创 LeetCode Binary Tree Postorder Traversal

1.题目Given a binary tree, return the postorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [3,2,1].Note: Recursive solution is trivial, co

2015-03-08 11:09:43 1196

原创 LeetCode Convert Sorted Array to Binary Search Tree

1.题目Given an array where elements are sorted in ascending order, convert it to a height balanced BST.2.解决方案1 struct Node{ TreeNode* t; int l; int r; Node(vector &num, int l, int r)

2015-03-08 10:19:12 1174

原创 LeetCode Climbing Stairs

1.题目You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?2.解决方案class Solution {public:

2015-03-06 17:42:00 1153

原创 LeetCode Remove Duplicates from Sorted List

1.题目Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, return 1->2->3.2.解决方案class Solution {public:

2015-03-06 17:24:06 1094

原创 LeetCode Search Insert Position

1.题目Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.

2015-03-06 16:47:48 1154

原创 LeetCode Binary Tree Preorder Traversal

1.题目Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,2,3].Note: Recursive solution is trivial, cou

2015-03-06 16:14:26 1305

原创 LeetCode Linked List Cycle

1. 题目 Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?2.解决方案class Solution {public: bool hasCycle(ListNode *head) { if(!head){

2015-03-06 15:40:37 1042

原创 Leetcode Same Tree

1.题目Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.2.解决方案1class S

2015-03-06 14:34:33 1173

原创 LeetCode Maximum Depth of Binary Tree

1.题目描述Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.2.解决方案1class Solution {public:

2015-03-06 10:46:33 1238

原创 LeetCode Swap Nodes in Pairs

1.题目Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant space. You may

2015-03-06 09:55:34 1128

原创 leetcode Rotate List

1. 题目描述Given a list, rotate the list to the right by k places, where k is non-negative.For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL.2.解决方案1class Solution {public: Li

2015-03-06 09:42:35 1041

原创 LeetCode Two Sum

1.题目Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe

2015-03-06 09:39:37 1543 2

原创 cocos2d 制作fnt 批量缩放png ios 批量制作图标 gamedevkit 支持windows, mac

0.制作了一个简单软件这个软件有4个功能:批量缩放png图片根据美术给的数字小图等,制作fnt字体文件供cocos2d使用批量制作ios 图标和android 图标(只需传入一张图片)截图制作,传入5张IPhone6+的截图,生成IPhone5,IPhone6的截图(这个功能没什么用,不过当你个人开发制作20+个游戏的时候,就能省点力)下面是具体功能介绍。。。当然这个软件暂定为收费。1. coco

2015-03-05 09:48:18 2167

Textures.rar

Directx 9.0教程之纹理映射 texture。 一个旋转的图片,可以看到反面。

2012-10-11

Matrices.rar

DirectX 9.0 C++ 教程 关于Perspective projection,Matrices,摄像头,旋转

2012-10-09

Vertices.rar

DirectX 9.0 绘制三角形。 一个彩色的三角形。

2012-09-29

Tutorial1.rar

DirectX 9.0 的第一个程序。就是SDK上的CreateDevice

2012-09-29

DialogFragment.rar

DialogFragment.rar 的一个例子。

2012-09-18

HelloMFC.rar

MFC的第一个例子。 hello MFC

2012-09-10

BasicListView.rar

ListView。BasicListView.rar

2012-08-21

FallMan1.rar

FallMan1.rar

2012-06-25

PhoneHelper.rar

PhoneHelper.rar

2012-06-16

helloworld1.rar

helloworld1.rar

2012-05-28

helloworld.rar

helloworld.rar

2012-05-28

NotePad.rar

NotePad.rar

2012-05-26

AndroidServiceTest.rar

AndroidServiceTest.rar

2012-05-21

ch09-jumper.rar

ch09-jumper.rar

2012-05-18

FlashLight.rar

FlashLight.rar

2012-05-18

HelloAndroid.rar

HelloAndroid.rar

2012-05-08

CalculateActivity.rar

CalculateActivity.rar

2012-05-08

native-audio.rar

native-audio,这里说明下Android中的JNI的中文乱码问题。 我们新建一个native.c的时候。eclipse对native.c默认的是GBK。我试着在java中把GBK转为UTF-8,依旧乱码,因此我也不知道jni返回的中文字符串是什么类型。

2012-04-20

hello-jni.rar

android jni 的hello world

2012-04-20

PHP实用指南1.0.CHM

PHP实用指南1.0.CHM,PHP实用指南1.0.,CHMPHP实用指南1.0.CHM.

2011-04-02

三星Calendar

1.主要实现了仿三星的日历主Activity的向左平移动画。 2.布局和图片都可以直接拿来用,如果要放到原生态的日历里问题也不大。 代码具体原理请看下面的博客: http://www.waitingfy.com/?p=646

2013-08-26

Air Hockey.7z

cocos2d-x Touch 事件应用的一个例子 移动精灵,精灵直接碰撞的简单例子,详细说明见下面的博客。 http://www.waitingfy.com/?p=608

2013-08-10

boost xpressive

用boost xpressive 写的一个例子。 是用vs2005 MFC开发的。我有一个wordpress博客,每次在csdn上写完博客,都需要复制到wordpress中,还需要手动修改<pre>和图片地址,比较麻烦,所以做了这个工具。 功能: 1.把CSDN博客的文章中的<pre name="code" class="cpp">标签转换成自定义的标签。比如我的wordpress博客中用的代码加亮插件是SyntaxHighlighter他的代码标签是<pre class="brush:cpp;" > 2.把CSDN博客的文章中的图片标签转换成Wordpress博客中的图片地址。比如会把"http://img.blog.csdn.net/20130621230257406"转换成"http://www.waitingfy/wp-content/uploads/2013/0720130621230257406.jpg" 里面包含源码和工具。具体源码解释可以参考 http://www.waitingfy.com/?p=592

2013-07-24

MFC 多线程

MFC 多线程的一个例子,插入多个优盘,选择一个目录,就会进行多线程复制。 具体可以查看博客: http://blog.csdn.net/fox64194167/article/details/9411751

2013-07-22

MFC 数据库操作

MFC 关于 数据库 增删改查的一个例子 见下面的博客说明。 http://blog.csdn.net/fox64194167/article/details/9410933 解压后,MFCDatabase_Data.MDF和MFCDatabase_Log.LDF复制到sqlserver2000安装的目录下:一般在C:\Program Files\Microsoft SQL Server\MSSQL\Data 然后进入企业管理工具,添加数据库,选择这个文件。

2013-07-22

Android Opengles 例子

Android 中使用OpenGL ES进行2D开发(纹理Texture使用) http://blog.csdn.net/fox64194167/article/details/7448491

2013-06-22

号码归属地.rar

参考文章http://blog.csdn.net/fox64194167/article/details/8978557 主要实现了一个C++打开二进制文件进行号码归属地查询的实现。还有个Android APK 号码归属地的实现。

2013-05-28

CursorLoadSample.rar

Android ListView 正在加载 异步载入数据 CursorLoader 例子http://blog.csdn.net/fox64194167/article/details/8941693

2013-05-17

HLSL Pixel Shader-Chinese

通过 HLSL 中的 Pixel Shader 让一张图片 黑白化, 中文注释版本。

2013-01-24

c++动态载入dll.rar

c++动态载入dll,里面有两个工程,一个生成dll,一个使用dll。是用vc++ 6.0开发的。

2013-01-09

HLSL Pixel Shader

通过 HLSL 中的 Pixel Shader 让一张图片 黑白化. http://blog.csdn.net/fox64194167/article/details/8308144

2012-12-18

YawPitchRoll.rar

根据鼠标移动进行旋转查看的水壶示例。运行参考http://blog.csdn.net/fox64194167/article/details/8028303。 博文参考http://blog.csdn.net/fox64194167/article/details/8260436

2012-12-07

RotationArbitrary.rar

矩阵中的数学旋转公式 转换到 C++中函数 替换DirectX 9.0自带函数。http://blog.csdn.net/fox64194167/article/details/8250543。 运行参考blog.csdn.net/fox64194167/article/details/8028303

2012-12-04

D3DXFont.rar

DirectX 9.0 C++ 教程 字体 迟到的helloworld。

2012-11-09

Meshes.rar

DirectX 9.0 C++ 教程 使用3ds max 创建的模型 xfile,mesh

2012-10-16

3ds max 2009 导出x文件插件(panda)

3ds max 2009 导出x文件插件, 复制到3ds max的安装目录下的plugins。重启3ds max,对一个max文件选择 文件下的导出,选择x文件格式即可。

2012-10-15

Lights.rar

Directx 光照教程,一个旋转的黄色茶壶

2012-10-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除