1.画三角形- (void)drawRect:(CGRect)rect { // 获取上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); // 确定三个点 CGContextMoveToPoint(ctx, 30...
分类:
其他好文 时间:
2015-12-07 20:47:52
阅读次数:
212
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
#include #include #include //提示用户操作void alert(char *content);/*检查输入是否合法maxNum: 最大的范围 5 (1-5)*/int getValidOperation(int maxNum);//查询余额void query();//退...
分类:
其他好文 时间:
2015-12-07 20:44:02
阅读次数:
301
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
题目传送门题意:训练指南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
private void endCall() { try { /* * 1.得到字节码文件 * 2.得到对应的方法getService * 4.执行这个方法 * 以上是反射过程 * 5。拷贝aidl文件 * 6.生成java代码 * 7,执行end...
分类:
移动开发 时间:
2015-12-07 20:27:02
阅读次数:
358
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
#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
题目传送门题意:训练指南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
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