码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
01 画简单线的方法
1.画三角形- (void)drawRect:(CGRect)rect { // 获取上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); // 确定三个点 CGContextMoveToPoint(ctx, 30...
分类:其他好文   时间:2015-12-07 20:47:52    阅读次数:212
c#通用递归生成无限层级树
NewsType结构:IdParentIdNamechildren(List)public void LoopToAppendChildren(List all, NewsType curItem){ var subItems = all.Where(ee => ee.ParentId==c...
分类:Windows程序   时间:2015-12-07 20:45:16    阅读次数:2847
1207--ATM自动取款机的实现
#include #include #include //提示用户操作void alert(char *content);/*检查输入是否合法maxNum: 最大的范围 5 (1-5)*/int getValidOperation(int maxNum);//查询余额void query();//退...
分类:其他好文   时间:2015-12-07 20:44:02    阅读次数:301
cocos2d-x游戏开发之动画
MyGame.h中声明动画函数:class MyGame : public cocos2d::Layer{public:static Scene* createScene(); void Updatetime(float t); virtual bool init(); void logic(flo...
分类:其他好文   时间:2015-12-07 20:43:48    阅读次数:239
并查集(路径更新) LA 3027 Corporative Network
题目传送门题意:训练指南P192分析:主要就是一个在路径压缩的过程中,更新点i到根的距离#include using namespace std;const int N = 2e4 + 5;struct DSU { int rt[N], d[N]; void init(void) { memset....
分类:Web程序   时间:2015-12-07 20:38:36    阅读次数:187
android项目实现电话自动挂断的功能
private void endCall() { try { /* * 1.得到字节码文件 * 2.得到对应的方法getService * 4.执行这个方法 * 以上是反射过程 * 5。拷贝aidl文件 * 6.生成java代码 * 7,执行end...
分类:移动开发   时间:2015-12-07 20:27:02    阅读次数:358
四种可变交流swap方法
1.void swap(int &x, int &y){ int temp=x; x=y; y=temp; }2.void swap(int &x, int &y){ x=x+y; y=x-y; x=x-y; }3.void swap(int &x, ...
分类:其他好文   时间:2015-12-07 20:24:08    阅读次数:114
2015.12.07 ATM_Function
#include #include #include int password = 123456;int balance = 10000;bool isLogined = false;void alert(char *content);int getValidOperation(int maxNum...
分类:其他好文   时间:2015-12-07 20:21:08    阅读次数:152
STL UVA 11995 I Can Guess the Data Structure!
题目传送门题意:训练指南P186分析:主要为了熟悉STL中的stack,queue,priority_queue,尤其是优先队列从小到大的写法#include using namespace std;int main(void) { int n; while (scanf ("%d", &n) ==...
分类:其他好文   时间:2015-12-07 20:16:28    阅读次数:136
java之运算符
package com.simope.myTest;import java.util.HashMap;import java.util.Iterator;import java.util.Map;public class Test20151026 { public static void ma...
分类:编程语言   时间:2015-12-07 18:37:19    阅读次数:121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!