big bug ban

兴趣 创新 践行

Archive for the ‘c/c++’ Category

小工具-htaccess转换成其他类型

 

.htaccess是apache的默认的重写规则和站点配置文件

这个小工具可以吧它转换成lighttpd的重写规则

运行时把.htaccess文件放入即可

不保证100%有效..

 

安装文件:
HtaccessToOther (177)

源代码:
[do[......]

继续阅读

Written by princehaku

六月 5th, 2011 at 11:00 下午

573 views

Posted in c/c++

Tagged with

with 2 comments

数据结构课程设计报告..小型图书管理系统..终于弄完了

 

5000行有差不多...

啊...

题目:图书管理系统

一. 需求分析

完成简单的图书管理业务

1)新书入库:登记新书的编号.书名.作者和数量

2)书目信息维护 : 删除,更新

3)读者信息维护:新增,删除读者

4)查询

5)借阅,归还[......]

继续阅读

Written by princehaku

五月 6th, 2010 at 1:09 下午

912 views

Posted in c/c++

without comments

vc.net 系统托盘

 

最近做那个科技立项..然后要用到vc.net

需要做系统托盘...

找了一下..

居然都不是很完整..

弄了半天居然不出来..

最后发现...是因为没有加图标

大家一定要记得加图标哇哇...


Written by princehaku

四月 25th, 2010 at 11:01 下午

487 views

Posted in c/c++

without comments

q-sql

 

准备搞个超级小的数据库系统..

主要是数据结构的课程设计要用额...

考虑让它支持一些超简易的sql语句.

索引嘛..就用B树..

Written by princehaku

四月 18th, 2010 at 11:42 上午

451 views

Posted in c/c++

Tagged with

without comments

准备做个小型的数据库系统.

 

//数据库主操作头文件
//
//by baizhongwei
//blog http://3haku.net
#ifndef DB_H
#define DB_H
#include "stdafx.h"
#include "BTreeM.h"

class DB
{
priva[......]

继续阅读

Written by princehaku

四月 11th, 2010 at 10:36 下午

413 views

Posted in c/c++

without comments

stringstream清空

 

stringstream s;
s.str("");

用s.clear()无效..还没去查原因...

Written by princehaku

四月 9th, 2010 at 10:23 下午

739 views

Posted in c/c++

without comments

该好好做点东西了..webcpp!!!

 

明天开始吧?

这个做了很久却一直没做完的东东

首先...嗯...需要一个在线聊天

ok~~~[......]

继续阅读

Written by princehaku

一月 31st, 2010 at 8:12 下午

541 views

Posted in c/c++

without comments

c++ .net 动态释放控件

 

如果使用create创建的 就用destroywindow
如果使用new创建的 就用delete
ps : gcnew和new一样 用delete[......]

继续阅读

Written by princehaku

十二月 23rd, 2009 at 1:33 下午

586 views

Posted in c/c++

without comments

C# 文件 写入文件时的编码

 

C# 文件 写入文件时的编码
主要的地方是StreamWriter的构造函数StreamWriter ( FileStream , Encoding )[......]

继续阅读

Written by princehaku

十二月 22nd, 2009 at 8:59 上午

499 views

Posted in c/c++

Tagged with

without comments

stl vector 简单例子

 

#include
#include
#include
using namespace std;

int main()
{
//一个vector
vector vec;

vec.push_back(4);
vec.push_back(1);
vec.push_back(3);
vec.push_back(9);

// STL中的排序算法
sort(vec.begin(), vec.end());

//输出结果
for (int i = 0; i < vec.size(); i ...[......]

继续阅读

Written by princehaku

十二月 18th, 2009 at 9:27 上午

607 views

Posted in c/c++

without comments

Pages: 1 2 3 Next