当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: SQLITE简介:ix = o ns = "urn:schem
 

 

    摘要:   在cmainframe类中添加下列成员变量和成员函数(使用classwizard),下面是这些变量和函数的功能说明:  成员变量:  bool m_bfullscreen; //全屏幕显示标志  crect m_fullscreenwindowrect; //全屏幕显示窗口rect  windowplacement m_wpprev; //用于保存正常视图时的窗口位置信息  ctoolba......
 ·c/c++中数组名的含义    »显示摘要«
    摘要: c/c++中的数组名是个很奇怪的东西,它到底代表什么呢? 对于char array[n](n是一个常数),大概有这么几种语义: <1> const char* <2> char [n] <3> char (&)[n] 举例如下(vc.net 7.1下编译): <1> char *p = array; // array表示const......


SQLITE3 在VC/MFC 中使用的一点体会
sqlite简介:

sqlite is not a client library used to connect to a big database server. sqlite is the server. the sqlite library reads and writes directly to and from the database files on disk. 【程序编程相关:eVC使用手记

this is an extension for the sqlite embeddable sql database engine. sqlite is a c library that implements an embeddable sql database engine. programs that link with the sqlite library can have sql database access without running a separate rdbms process. 【推荐阅读:最近做了个短期程序“百度MP3搜索”,把

在 vc工程目录下 设置 link  l/对象类模块 为 sqlite3.lib 【扩展信息:做界面时使两控件对齐的方法

                     c/c++   分类  precompiled  header  选择不使用预补偿页眉

 

首先将sqlite3的七个文件放在与vc工程文件同一目录下

在工程中加入 cppsqlite3db.cpp与cppsqlite3db.h文件

 

# include "cppsqlite3.h"

extern cppsqlite3db db;/////数据库对象

 

    remove("c:\\test.db");

    db.open("c:\\test.db");///打开数据库文件

   

建立表格:

db.execdml("create table customer(customername char(50), roomnumber int, customerid int, cometime int,money int);");

  db.execdml("create table room(roomnumber int, roomprice int, roomstate char[20]);");


...   下一页
 ·统计vc的中文注释的程序    »显示摘要«
    摘要: 能够对vc中的中文注释进行统计(我认为的中文注释是有两个中文字的注释)。得到注释的百分比。 统计单行中文注释。 统计多行中文注释。 能够简单识别注释掉的代码段,通过判断该段中是否有 ); :: { } if( 关键点来判断。 若多行注释中有超过3个关键点则认为是注释掉的代码段。不计入中文注释行数中。 只有有 中文字 并且 关键点少于3个 的为中文多行注释。 其中行数包括/* 的所在行......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE