- 博客(18)
- 收藏
- 关注
转载 libgdx:读取Skin用的json报错:Field not found: listBackground
原因是作者Mario他改变了一些地方:SCENE2D, SELECTBOXSTYLE CHANGESSelectBoxStyle has been modified so you can fully style the drop down list. Previously you could only set the list background and selection, like th
2014-01-01 13:34:57
1554
转载 浅谈C/C++中的顺序点和副作用
原文链接:http://www.cnblogs.com/dolphin0520/archive/2011/04/20/2022330.html作者:海子 出处:http://www.cnblogs.com/dolphin0520/ 本博客中未标明转载的文章归作者海子和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则
2013-12-12 13:02:04
627
转载 Windows延迟删除原理
所谓重启延迟删除技术,就是在操作系统启动前删除或者替换文件!说起重启延迟删除,大家可能都很陌生,但是实际上,该功能已经被各种软件所采用:如安装Windows 补丁程序(如:HotFix、Service Pack)、安装Office 补丁程序、反病毒软件的的清除、软件的升级,文件强制删除工具软件等等等等……本文将首先介绍延迟删除/重命名的工作机制,然后介绍如何使用这个功能维护你的系统。一
2013-08-16 01:45:01
1094
转载 使用cout标准输出如何控制小数点后位数
#include #include using namespace std; int main( void ) { const double value = 12.3456789; cout << value << endl; // 默认以6精度,所以输出为 12.3457 cout << setprecision(4) << value << end
2013-08-06 17:17:15
656
转载 排序(sorting)
排序(sorting)排序(Sorting)第一類:內部與外部排序第二類:穩定與不穩定排序法第三類:簡單與高等排序法常見之排序演算法氣泡排序(Bubble sorting)選擇排序(Selection sorting)插入排序(Insertion sorting)快速排序(Quick sorting)堆積排序(Heap sorting)薛爾排序(Shel
2013-08-03 15:25:59
968
转载 Unable to resolve host “<insert URL here>” No address associated with hostname
出现这种情况很可能是因为未授予APP访问互联网的权限。在manifest的XML文件中加入以下代码
2013-07-19 23:51:33
2151
转载 Android中文出现乱码时需要注意的一些地方
首先所有源文件的编码格式要统一,包括xml文件。clean一下工程。再就是在一些函数中注意制定字符集作为参数,比如String result = new String(result.getBytes(),"UTF-8");BufferedReader br = new BufferedReader(new InputStreamReader(is,"GB2312"));
2013-07-19 23:27:36
584
转载 解决android.os.NetworkOnMainThreadException
Caused by: android.os.NetworkOnMainThreadException,查了下原因上在4.0之后在主线程里面执行Http请求都会报这个错public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.l
2013-07-16 02:37:32
622
转载 关于Android的一些基础注意事项
把HttpURLConnection放在异步线程中,等获取到数据之后通过Handler发送给主线程,否则如果网络很慢,岂不是会把界面卡住使用Android logcat 对我们开发、调试Android程序有很大的帮助!通过logcat,我们可以非常方便的了解到程序的执行情况,判断出错代码位置。最简单的logcat指令:Log.v(String tag
2013-07-15 19:05:08
680
转载 android Debug时提示source not found
把SDK目录下的sources目录加进去(似乎是有个Add resource path按钮,我忘了,因为它不再出现了)就行了。有个搜索子目录附加选项,选中它。
2013-07-14 18:57:25
659
转载 MySQL error : unknown storage engine InnoDB
# Use this option if you have a MySQL server with InnoDB support enabled# but you do not plan to use it. This will save memory and disk space# and speed up some things.skip-innodb在windows下,注释
2013-06-30 15:40:24
610
转载 ResEdit Windows下免费的rc资源编辑器
http://www.resedit.net/All of the units of size in the editor are not in pixels, but Dialog Units. It means the real window size will depend on the selected font. If you choose a bigger font, you wi
2013-05-22 23:34:38
1889
转载 COM Plus Catalog Requirement error during SQL Server install
If you run into issues during the installation and get this warning :* COM Plus Catalog Requirement* If SQL Server Setup fails, Setup will roll back the installation but may not remove all .mani
2013-05-21 20:49:16
786
转载 “Microsoft.SqlServer.Management.Dmf.PolicyStore”的类型初始值设定项引发错误
这个错误发生在启动SQL Server 2008 Management Studio时。具体描述为“未能加载文件或程序集“Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91”或它的某一个依赖项。系统找不到指定的文件。 (Micro
2013-05-20 20:53:57
2338
转载 利用函数来画任意图形
http://www.youkuaiyun.com/article/2013-05-06/2815137原文(http://www.isnowfy.com/generate-any-function-curve/)
2013-05-06 21:14:17
614
转载 在const成员函数中使用下标[]操作map成员引发编译错误
在VC中的错误信息为:error C2678: 二进制“[” : 没有找到接受“const std::map”类型的左操作数的运算符(或没有可接受的转换)解决方法就是使用iterator来操作map成员。为map成员增加mutable关键字也能解决,但并非我们的意图所在。
2013-05-05 20:00:43
1322
转载 C++标准异常类
namespace std { //exception派生 class logic_error; //逻辑错误,在程序运行前可以检测出来 //logic_error派生 class domain_error; //违反了前置条件 class invalid_argument; //指出函数的一个无效参数
2013-05-05 19:52:05
820
转载 VS2008在升级到SP1后即可支持tr1
C++官方推荐使用std::tr1::shared_ptr,弃用std::auto_ptr。前者声明在memory头文件中。SP1补丁下载链接:http://www.microsoft.com/zh-cn/download/details.aspx?id=10986
2013-05-03 21:40:52
735
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人