代码改变世界

阅读排行榜

T-SQL语句之Select(一)

2012-03-11 09:07 by java20130722, 356 阅读, 收藏,
摘要: OperatorDescription!=Tests two expressions not being equal to each other.!>Tests that the left condition is not greater than the expression to the right.!Tests two expressions not being equal to each other.=Tests equality between two expressions.>Tests the left condition being greater than the 阅读全文

字符串匹配算法之Brute force algorithm

2013-06-06 12:57 by java20130722, 354 阅读, 收藏,
摘要: 算法的主要特点1、算法没有预处理过程2、需要一定的额外空间3、匹配过程中总是向右移动一个字符位置4、匹配时间复杂度为O(m*n)5、大概需要2n次字符串比较C代码如下#include #include #inclde void BF(char *x, int m, char *y, int n) { int i, j; /* searching */ for (j = 0; j m) printf("%d\n", j); } }}// 以下是对代码进行优化后的版本#define EOS '\0'void better_BF(char *x, int m,.. 阅读全文

如何调用 DLL 中的C++ 类(隐式链接)

2012-05-08 12:19 by java20130722, 354 阅读, 收藏,
摘要: 如何调用DLL中的C++类(隐式链接)最近在整DLL,对于从DLL中导出 c++类,自己的学习笔记如下:我用的是VS2010.不过其他VS编译器应该都差不多吧!步骤一:建一个 win32解决方案,主工程(就是还有 main函数的)那个我就不说 了),DLL工程最后一步的Application type选中Dll:步骤二:在 DLL工程中添加两个文件: clsDLL.h, clsDLL.cpp//clsDLL.h#pragmaonce#ifndef DLLEXPT#defineDLLEXPT__declspec (dllexport)#endifclassDLLEXPT myCls{public 阅读全文

[Android]应用语言切换的三种方法

2011-12-01 10:26 by java20130722, 354 阅读, 收藏,
摘要: Android对国际化与多语言切换已经做得不错了,一个应用只要命名相应语系的values-[language]文件夹,通过“设置”→“语言&键盘”→“选择语言”即可实现应用多种语言的切换。 但如何在应用里自己实现?搜索过发现网上有如下的做法:view plainResourcesres=getResources();Configurationconfig=res.getConfiguration();config.locale=locale;DisplayMetricsdm=res.getDisplayMetrics();res.updateConfiguration(config,d 阅读全文

maven setting 文件

2013-05-15 23:24 by java20130722, 353 阅读, 收藏,
摘要: usr/local/maven true false false org.codehaus.mojo myproxy true http proxy.somewhere.com 8080 proxyuser somepassword *.google.com|ibiblio.org server001 my_login my_password ${usr.home}/.ssh/id_dsa some_passphrase 664 775 planetmirror.com PlanetMirror Aust... 阅读全文
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 115 下一页