摘要: 1、AnsiString::Pos如果找到子串,返回子串所在位置,1为原串的第一个字符,与C传统不同。没有找到子串返回0.2、vector http://blog.chinaunix.net/uid-20622737-id-3278413.htmlhttp://www.cnblogs.com/wan... 阅读全文
posted @ 2014-02-24 14:51 action爱生活 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 第2 章 linux 内核体系结构2.1 本书所讲为单内核模式单内核模式中,操作系统提供的服务流程为:应用主程序使用指定的参数值执行系统调用指令(int x80),使CPU 从用户态(User Mode)切换到核心态(Kernel Model),然后操作系统根据具体的参数值调用特定的系统调用服务程序... 阅读全文
posted @ 2014-02-20 15:42 action爱生活 阅读(171) 评论(0) 推荐(0) 编辑
摘要: mciSendString用法使用MCI API,源文件中需要包含头文件 Mmsystem.h,在Project->Settings->Link->Object/libray module中加入库 Winmm.lib。 VS2008在源文件加上#include "mm... 阅读全文
posted @ 2014-02-20 10:59 action爱生活 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 1.peekmessage,getmessage区别区别一:他们如果没有捕获到消息,程序的主线程会被操作系统挂起。当操作系统再次回来照顾此线程时,发现消息队列中仍然没有消息可取,此时两个函数的行为就 不同了:peekmessage不管消息队列里有没有消息都会马上返回,有消息返回消息,没消息返回空值,... 阅读全文
posted @ 2014-02-17 13:45 action爱生活 阅读(398) 评论(0) 推荐(0) 编辑
摘要: c/c++中运行外部程序或打开文件(转)关于三个SDK函数: WinExec, ShellExecute,CreateProcess 的其他注意事项:【1】定义头文件必须定义以下两个头文件:#include // 可替换为 windows.h#include 如果定义了头文件 #include 的... 阅读全文
posted @ 2014-02-17 10:33 action爱生活 阅读(2544) 评论(0) 推荐(0) 编辑
摘要: //书中的Item_book类#include #include using namespace std;class Item_base{public: Item_base(const string &book = "", double sales_price = 0.0):isbn(book), ... 阅读全文
posted @ 2013-12-24 12:01 action爱生活 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1、直接初始化 string dots(10, '.'); // direct-initialization调用参数为一个数量和一个字符的 string 构造函数并直接初始化 dots 的成员。2、复制初始化 1) string null_book = "9-999-99... 阅读全文
posted @ 2013-12-24 00:01 action爱生活 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、效果预览2、关键代码void __fastcall TForm1::FormCreate(TObject *Sender){ StringGrid1->ColCount = 4; StringGrid1->RowCount = 6; StringGrid1->DefaultRo... 阅读全文
posted @ 2013-12-17 18:13 action爱生活 阅读(487) 评论(0) 推荐(0) 编辑
摘要: StringGrid控件组件名称:StringGrid●固定行及固定列:StringGrid.FixedCols:=固定行之数;StringGrid.FixedRows:=固定列之数;StringGrid. FixedColor:=固定行列之颜色;StringGrid.Color:=资料区之颜色;●... 阅读全文
posted @ 2013-12-17 17:17 action爱生活 阅读(1289) 评论(0) 推荐(0) 编辑
摘要: 带你快速了解“存储过程”的定义及优点发布时间:2008.03.12 04:48来源:赛迪网作者:林夕【赛迪网-IT技术报道】“存储过程”的定义及优点存储过程sql语句执行的时候要先编译,然后执行。存储过程就是编译好了的一些sql语句。应用程序需要用的时候直接调用就可以了,所以效率会高。存储过程介绍存... 阅读全文
posted @ 2013-12-16 11:15 action爱生活 阅读(155) 评论(0) 推荐(0) 编辑