//Console I/O 加上CreateThread
/*Demonsttrates how to write a program that cna use
CreateThread instead of calling _beginthreadex.
This program does not need the multithread library.
This program co...
分类:
其他好文 时间:
2015-07-27 15:02:42
阅读次数:
127
Calling Extraterrestrial Intelligence AgainTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4964Acc...
分类:
其他好文 时间:
2015-07-23 17:10:08
阅读次数:
94
Ques 01. What is the difference between ByVal and ByRef and which is default ?Solution: ByRef: If you pass an argument by reference when calling a pro...
分类:
编程语言 时间:
2015-07-21 16:53:42
阅读次数:
241
org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save():ID主键生成策略为assigned 由应用程序负责生成主键标识符
而在保存时没有设置IDsession.save(entity);导致出现此错误解决方...
分类:
Web程序 时间:
2015-07-18 00:39:39
阅读次数:
158
问题mysql 查询出现错误error: (2014, "Commands out of sync; you can't run this command now")查询mysql文档中的解释
If you get Commands out of sync; you can’t run this command now in your client code, you are calling c...
分类:
编程语言 时间:
2015-07-17 00:31:46
阅读次数:
247
Steps:1. 对于不同浏览器,取得相应XMLHTTP2. 拼接SOAP message;3. POST方法;4. Send;PS: WebService 是Java Axis2搭建的。来自为知笔记(Wiz)
分类:
编程语言 时间:
2015-07-15 14:54:35
阅读次数:
162
在Activity中使用startActivity()方法不会有任何限制,因为Activity重载了Context的startActivity()方法。但是如果是在其他地方(如Widget或Service、BroadcastReceiver中)使用startActivity()方法,就会报错:and...
分类:
其他好文 时间:
2015-07-11 09:02:09
阅读次数:
158
原文:https://code.google.com/p/googlemock/wiki/CheatSheetDefining a Mock ClassMocking a Normal ClassMocking a Class TemplateSpecifying Calling Conventio...
分类:
其他好文 时间:
2015-07-10 09:22:58
阅读次数:
95
1.0 函数的定义与调用(Defining and Calling Functions )习惯了C#了语法,看到下面的这样定义输入参数实在感到非常别扭,func 有点 Javascript的感觉,还算习惯。函数调用与其他语言没什么区别//有输入参数和返回值的函数//输入参数为名name,数据类型为S...
分类:
编程语言 时间:
2015-07-10 02:07:24
阅读次数:
135
错误原因:
Activity打开别的Activity的时候会默认把新的Activity放到自己的task中,所以不用指定,但是别的地方就得指定了。
解决办法:intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
***********************************************以下属于了解学习******...
分类:
其他好文 时间:
2015-07-08 19:07:31
阅读次数:
145