首页 > 2015年03月04日 > 全部分享
MFC同步和异步消息
MFC消息函数中: SendMessage/OnWndMsg: 同步消息函数 PostMessage/GetMessage/PeekMessage: In Message Queue 异步消息函数...
分类:编程语言   时间:2015-03-04 12:59:53    收藏:0  评论:0  赞:0  阅读:446
访问网络之HttpClient和HttpUrlConnection
HttpClient对比HttpUrlConnection有比较丰富的api,但是不利于扩展和升级,加上android团队在优化HttpClient方面并不积极。 我比较倾向使用HttpUrlConnection,下面还是把两种访问网络的方法列出来以作比较。 HttpClient: public String httpGet(String url, String params) throws...
分类:Web开发   时间:2015-03-04 12:59:43    收藏:0  评论:0  赞:0  阅读:477
NSNull, NSNumber 转字符串
开发过程中处理数据的时候会遇到的一些问题 给NSString 创建一个类目,创建+号方法 @implementation NSString (NSNumberChange) + (NSString *)stringJsonValue:(id)JsonValue {     NSString *string = nil;     if (JsonValue == [NS...
分类:其他   时间:2015-03-04 12:59:33    收藏:0  评论:0  赞:0  阅读:230
UVa 10791 - Minimum Sum LCM
题目:给你一个数N,确定一个正整数集合S,使得S中的数字的LCM为N且S中数字之和最小。 分析:数论。首先,有一个结论S中的元素互质,因为如果不互质LCM不变,且和更大。             既然S中元素互质,那么只要将N因式分解即可,且相同的因子只能组成一个数字;             (这里先不考虑N等于1或者素数的情况)             即S = { 2^a1, 3^a...
分类:其他   时间:2015-03-04 12:59:23    收藏:0  评论:0  赞:0  阅读:194
08.spritekit征程——场景中的动画
08.spritekit征程——场景中的动画接着上文,显示静态的文字是否无法满足你的欲望,那么本文的内容绝对让你热血沸腾,记得小时候爱看动画,现在有这么一个机会让你来创作是不是想想都有点小激动呢。 动画的核心呢就是actions。在Sprite Kit 中的大多数action 其实就是改变节点(Node)的属性罢了。假如你还不了解节点是什么,建议好好谷歌百度下,虽说都是最基础的知识,但是我认为“万...
分类:其他   时间:2015-03-04 12:59:13    收藏:0  评论:0  赞:0  阅读:180
基于Scriptcase的流程审批开发明细
通过Scriptcase的快速代码生成工具,可以方便的生成表单和行式报表;通过weBasic框架的流程配置向导和流程管理工具,可以方便的定义流程的节点、流程关联关系、收件人、加载函数、发送函数等等,从而使得业务数据可以进行多步骤的流程式审批。     流程审批可以使用在企业内部的请假申请、费用审批、事项审批、业务流转...
分类:其他   时间:2015-03-04 12:59:03    收藏:0  评论:0  赞:0  阅读:343
[LintCode]k Sum
Given n distinct positive integers, integer k (k <= n) and a number target.Find k numbers where sum is target. Calculate how many solutions there are?...
分类:其他   时间:2015-03-04 12:58:53    收藏:0  评论:0  赞:0  阅读:275
python urllib2模块
python urllib2模块urlopen()最常用的函数 urllib2.urlopen(url[, data[, timeout[, cafile[, capath[, cadefault[, context]]]]]) Open the URL url, which can be either a string or a Request object. 他有几个参数比较重要的...
分类:编程语言   时间:2015-03-04 12:58:43    收藏:0  评论:0  赞:0  阅读:233
数值的整数次方
题目描述: 给定一个double类型的浮点数base和int类型的整数exponent。求base的exponent次方。 输入: 输入可能包含多个测试样例。 对于每个输入文件,第一行输入一个整数T,表示测试案例的数目,接下来的T行每行输入一个浮点数base和一个整数exponent,两个数中间用一个空格隔开。 输出: 对应每个测试案例, 输出一个浮点数代表答案,保留两位小数即可。 ...
分类:其他   时间:2015-03-04 12:58:23    收藏:0  评论:0  赞:0  阅读:200
Android开发:ListView添加EmptyView的帮助类
在项目开发过程中,会碰到许许多多的ListView,古老的方法就是每碰到一个ListView,就在xml文件里面写上emptyView,然后添加emptyView,其实在很多时候,不同ListView的emptyView是一样的,对此,写一个简单的帮助类,在ListView需要增加emptyView的时候,只要添加一行代码就可以实现了 帮助类的名称叫EmptyViewHelper,代码如...
分类:移动平台   时间:2015-03-04 12:58:13    收藏:0  评论:0  赞:0  阅读:202
Android WebView简单应用
WebView是View的一个子类,可以让你在activity中显示网页。在布局中拉入一个WebView,一个Button,一个EditText 布局代码如下:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/t...
分类:移动平台   时间:2015-03-04 12:58:03    收藏:0  评论:0  赞:0  阅读:296
Activemq 安装与集群配置
1. 新建文件夹activemq/server  mkdir  server   2.授权  chmod 777 server   3.下载activeMQ安装包,拷贝到/activemq/server目录下 apache-activemq-5.9.0-bin.tar.gz,下载地址: http://activemq.apache.org/download.html   4....
分类:其他   时间:2015-03-04 12:57:53    收藏:0  评论:0  赞:0  阅读:265
android中判断当前运行activity名的方法
本文实例讲述了android获取当前运行Activity名字的方法,可以避免即时聊天再出现通知的情况。分享给大家供大家参考。具体方法如下: 最近在做聊天时需要知道当前Activity是哪一个Activity.整理了两种方法: 第一种:要方便一点(Service中无法使用) private String getRunningActivityName() { ...
分类:移动平台   时间:2015-03-04 12:57:43    收藏:0  评论:0  赞:0  阅读:363
Python面试题汇总
拿网络上关于Python的面试题汇总了,给出了自认为合理的答案,有些题目不错,可以从中学到点什么.........
分类:编程语言   时间:2015-03-04 12:57:33    收藏:0  评论:0  赞:0  阅读:258
1039. Course List for Student
Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes ...
分类:其他   时间:2015-03-04 12:57:23    收藏:0  评论:0  赞:0  阅读:259
Controller接口控制器详解(1)——SpringMVC
Controller接口控制器详解(1)——SpringMVC...
分类:编程语言   时间:2015-03-04 12:57:13    收藏:0  评论:0  赞:0  阅读:277
URAL 1409 Two Gangsters (开放思维)
Two Gangsters Time limit: 1.0 second Memory limit: 64 MB Two gangsters Harry and Larry had a rest at countryside. They decided to spend some time shooting, so they put several beer cans (...
分类:其他   时间:2015-03-04 12:57:03    收藏:0  评论:0  赞:0  阅读:243
<!--把一个xml文档("note.xml")载入到xml解析器中-->
funcion parseXML() { try { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); }catch(e) { try { xmlDoc = document.implementation.createDocument("", "", null); }catch(e) { alter(e.message); r...
分类:其他   时间:2015-03-04 12:56:53    收藏:0  评论:0  赞:0  阅读:264
URAL 1877 Bicycle Codes
Bicycle Codes Time limit: 0.5 second Memory limit: 64 MB Den has two four-digit combination locks for protecting his bicycle from thieves. Every evening he arms the bicycle antitheft alar...
分类:其他   时间:2015-03-04 12:56:43    收藏:0  评论:0  赞:0  阅读:203
[LintCode]k Sum II
Given n unique integers, number k (1<=k<=n) and target. Find all possible k integers where their sum is target.Example Given [1,2,3,4], k=2, target=5, [1,4] and [2,3] are possible solutions....
分类:其他   时间:2015-03-04 12:56:33    收藏:0  评论:0  赞:0  阅读:224
1865条   上一页 1 ... 65 66 67 68 69 ... 94 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!