现在位置: 首页 > gao1964发表的所有文章
  • 12月
  • 21日
综合 ⁄ 共 150字 评论关闭
UVa10651 Pebble Solitaire 题意:n组测试数据,每个测试数据有12个字符构成。'o'表示当前位置有珠子,‘-’表示是空位,如果有两个珠子连在一起,且两个珠子的左右有空位,那么,就可以把一个珠子越过另一个珠子,占据空了的位置(左边或右边的空位都可以。很像跳棋) 状态压缩DP load……
阅读全文
  • 05月
  • 06日
综合 ⁄ 共 832字 评论关闭
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title>Index</title>      <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>    <script type="text/javascript">        $(function() {            $("#CheckAll").click(function() {                var flag = $(this).attr("checked");      ......
阅读全文
  • 05月
  • 03日
综合 ⁄ 共 12013字 评论关闭
 MySQL由于它本身的小巧和操作的高效, 在数据库应用中越来越多的被采用.一定要保持查询和插入的高效.以下是在使用过程中做的提高效率的三个有效的尝试. 1. 使用statement进行绑定查询 2. 随机的获取记录 3. 使用连接池管理连接. --------------------------------------------------------------------------------------------- l        使用statement进行绑定查询 使用statement可以提前构建查询语法树,在查询时不再需要构建语法树就直接查询.因此可以很好的提高查询的效率. 这个方法适合于查询条件固定但查询非常频繁的场合. ......
阅读全文
  • 05月
  • 02日
综合 ⁄ 共 3360字 评论关闭
#include<iostream> #include<cstdio> #include<cstdlib> using namespace std; typedef struct NodeType { char elem; struct NodeType *next; }Node; typedef struct DNodetype { char elem; struct DNodetype *prev; struct DNodetype *next; }DNode; /*创建单链表*/ Node *CreateList(Node *head) { if(NULL == head) { head = (Node *)malloc(sizeof(Node)); head->next = NULL; } Node *current = head, *temp; ......
阅读全文
  • 12月
  • 20日
综合 ⁄ 共 2429字 评论关闭
转自:http://blog.csdn.net/Duwchy     1. Klimt的设计目标 清晰的面向对象设计风格,易于了解Klimt的内部结构; 可扩展的 模块化的组件使得它更容易修改到更高级的版本(硬件光栅器,无线多媒体扩展Wireless-MMX,等等) 支持多种平台,编译系统,和操作系统 2. Klimt的实现方式 由于一些类(比如Context 和 Resterizer)相当庞大,他们被分开为多个源文件。对于每一个类,都有一个以类名命名的主文件(比如 klContext.h),另外的文件就以类为前缀进行命名(如 klContext_oglMatrix.h) Klimt主要的部分是非常独立于硬件的。......
阅读全文
  • 12月
  • 18日
综合 ⁄ 共 7286字 评论关闭
VC/MFC之ListCtrl控件使用经验总结 作者:lixiaosan 时间:04/06/2006 以下未经说明,listctrl默认view 风格为report 相关类及处理函数 MFC:CListCtrl类 SDK:以 “ListView_”开头的一些宏。如 ListView_InsertColumn -------------------------------------------------------------------------------- 1. CListCtrl 风格       LVS_ICON: 为每个item显示大图标       LVS_SMALLICON: 为每个item显示小图标       LVS_LIST: 显示一列带有小图标的item       LVS_REPORT: 显示item详细资料       直观的理解:windows资......
阅读全文
  • 12月
  • 06日
综合 ⁄ 共 6851字 评论关闭
Release Notes Release 3.1.0 IMPORTANT! Please recopy the jniwrap.dll to your system32 dir. Most of the jars in the lib directory have been upgraded, so you will need to update your environment to use the new jars. Design Changes: Upgraded to JExplorer 1.7.4x Changed the way Watij waits until the browser is ready so that the next call will process the wait. This fixes many browser closing and javascript timing issues. However if you are currently timing actions for performance......
阅读全文
  • 11月
  • 12日
综合 ⁄ 共 1476字 评论关闭
1)先打开profiling ==> set profiling = 1; mysql> set profiling = 1; Query OK, 0 rows affected (0.00 sec) 2) 执行查query操作mysql> select * from mall where id = 12; 3)show profiles; 显示所有的profile 选择想查看的Query_ID mysql> show profiles; +———-+————+—————————————+ | Query_ID | Duration | Query | +———-+————+—————————————+ | 1 | 0.00013125 | select * from mall where id = 12 | | 2 | 0.00017800 | SELECT DATABASE() | | 3 | 0.00046525 | select * from mall where id = 12 | | 4 ......
阅读全文
  • 11月
  • 09日
综合 ⁄ 共 49字 评论关闭
邀请码:20141012132748_769620,有效期至2014-10-12 13:27:48。
阅读全文
  • 11月
  • 01日
综合 ⁄ 共 943字 评论关闭
在使用ps命令的时候有一列为进程的状态,例如 [davidp@supernova:~]$ ps u   USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND davidp 3995 0.0 0.4 3324 1956 pts/2 Ss Aug17 0:00 /bin/bash davidp 25049 0.0 0.8 7104 3908 pts/5 S+ Aug19 0:10 irssi davidp 26180 0.0 0.1 2656 908 pts/0 R+ 14:41 0:00 ps u   其中STAT列为进程的状态   The codes used are: Code Meaning D Uninterruptible sleep (usually IO) R Running or runnable (......
阅读全文
  • 10月
  • 14日
综合 ⁄ 共 2956字 评论关闭
文件 首先要允许可以对外部存储卡进行写操作。   android.permission.WRITE_EXTERNAL_STORAGE   单元测试 在.Instrumentation元素中加入android.test.InstrumentationTestRunner   目标包要和工程的包名相同。     <uses-library               android:name="android.test.runner" /> public class Test extends AndroidTestCase 单元测试中的测试方法必须是public  文件写的一般步骤: 1、定义一个输出流用于写文件; FileOutputStream fileOutputStream=null; 2、定义一个写文件的SD卡位置; File file=new File(Environme......
阅读全文
  • 09月
  • 16日
综合 ⁄ 共 426字 评论关闭
1、CCAffineTransform.h文件 关于CC_DLL:http://www.cnblogs.com/mingfish/p/3180652.html CCArray函数,操作objective-c,有retain和release操作 ccCArray函数,操作标准C,没有retain和release操作 2、CCArray.h文件 3、ccTypes.h文件 Color3B    Color4B    Color4F  :WHITE,YELLOW,GREEN,BLUE,RED,MAGENTA,BLACK,ORANGE,GRAY 4、CCFileUtils.h文件 FileUtils类:处理文件的操作类 CCFileUtilsWin32文件中:convertPathFormatToUnixStyle(const std::string& path)函数是将D:\aaa\bbb\ccc\ddd\abc.txt --> D:/aaa/bbb/......
阅读全文