直接看代码:// IPlayCtlpublic: HRESULT OnDraw(ATL_DRAWINFO& di) { RECT& rc = *(RECT*)di.prcBounds; /* Rectangle(di.hdcDraw, rc.le...
分类:
其他好文 时间:
2014-07-09 22:13:03
阅读次数:
257
当我们真机调试app的时候,作为开发人员的我们可以很方便的通过Xcode的debug area查看相关的打印信息。而测试人员在对app进行测试的时候,一旦出现了crash,这时我们就需要把相关的打印信息保存下来,以便后面进行查看追踪crash原因。在这里我们可以将打印信息写入沙盒系统中。不多说了.....
分类:
移动开发 时间:
2014-07-06 22:24:58
阅读次数:
597
In a fast local area network (LAN) environment, Transmission Control Protocol/Internet Protocol (TCP/IP) Sockets and Named Pipes clients are comparabl...
分类:
其他好文 时间:
2014-07-06 20:39:21
阅读次数:
315
IArea area = feature.Shape as IArea;IPoint pt=area.Centroid;//中心点
分类:
其他好文 时间:
2014-07-06 16:00:44
阅读次数:
163
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.public class Solution { public...
分类:
其他好文 时间:
2014-07-06 13:50:22
阅读次数:
153
最近使用LUA开发手游,团队里大神自研了个框架,底层C++渲染,上层LUA处理逻辑。
LUA的IDE选择LDT,不爽的是它不能自动启动模拟器,看过COCOSIDE能自启动,于是我想改造下LDT让它支持自启动模拟器。
参考原型:http://wiki.eclipse.org/Koneki/LDT/Developer_Area/Building_LDT_from_source
注意地方:...
分类:
其他好文 时间:
2014-07-06 12:35:31
阅读次数:
240
Qt 5以后qmlscene被qml所替代,/usr/bin/qml可以用来执行.qml文件。所以,我们就可以和sh一样的来写界面了。#!/usr/bin/env qml
import QtQuick 2.2
Rectangle {
width: 200
height: 100
Text {
anchors.centerIn: parent
...
分类:
其他好文 时间:
2014-07-04 09:14:40
阅读次数:
259
题目如下:
Slash Maze
By filling a rectangle with slashes (/) and backslashes (), youcan generate nice little mazes. Here is an example:
As you can see, paths in the maze cann...
分类:
其他好文 时间:
2014-07-02 09:07:46
阅读次数:
186
构造系数矩阵,高斯消元求解二次函数,然后两点式求直线函数,带入辛普森积分法无脑AC。。。
#include
#include
#include
#include
#include
#include
using namespace std;
struct node
{
double x,y;
}p[4];
double g[10][10];
double f1(double x) //二次...
分类:
其他好文 时间:
2014-07-02 07:56:59
阅读次数:
313
Rectangle and Circle
Problem Description
Given a rectangle and a circle in the coordinate system(two edges of the rectangle are parallel with the X-axis, and the other two are parallel with the Y...
分类:
其他好文 时间:
2014-07-02 07:29:06
阅读次数:
268