big bug ban

兴趣 创新 践行

Archive for 十二月, 2009

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 上午

612 views

Posted in c/c++

without comments

c++ 最稳定婚姻问题

 

c++ 最稳定婚姻问题[......]

继续阅读

Written by princehaku

十二月 16th, 2009 at 4:58 下午

471 views

Posted in c/c++

without comments

windows7和xp 共享方法

 

之前看了哈网上的..感觉不是很好用

把自己的经验写一下

首先

是防火墙

最好关了..

或者添加一个例外

如图第一个 允许程序通过 加上135端口或者把windows share给弄进去

然后第二步

右下角打开网络共享中心

然后点选择共享选项

第三个 choose homegroup and sharin...[......]

继续阅读

Written by princehaku

十二月 16th, 2009 at 4:38 下午

758 views

Posted in technology

without comments

无法定位 WordPress 主题目录

 

方案: 打开htdocs目录下的wp-config.php文件,将下面的代码放在wp-config.php最后一行的”?>”前面即可。注意,不要忘记上传到服务器上啊。

Php代码

if(is_admin()) {add_filter(’filesystem_method’, create_function(’$a’, ’return ”direct”;’ ));define( ’FS_CHMOD_DIR’, 0751 );}

来自...[......]

继续阅读

Written by princehaku

十二月 11th, 2009 at 11:59 下午

600 views

Posted in php

without comments

要考试了...哇哇!

 

加油..[......]

继续阅读

Written by princehaku

十二月 11th, 2009 at 8:47 下午

457 views

Posted in things goes by

without comments

bt没了,,我们将何去何从??

 

BT网站陆续关停 高清播放或将从此远离我们

[迅雷VeryCD前景堪忧] [VeryCD或将部分关闭[......]

继续阅读

Written by princehaku

十二月 9th, 2009 at 10:42 上午

428 views

Posted in think in IT

Tagged with

without comments

和谐掉了linux版的

 

怎么说呢?...

一是因为网速...

二是因为安全性...

三是得不到编译时内存占用情况..

暂时和谐之.[......]

继续阅读

Written by princehaku

十二月 5th, 2009 at 9:17 上午

374 views

Posted in c/c++

without comments

webcpp–linux版

 

终于把东西运行在了linux上

当然生成的文件也是linux的out文件

不过还是有点问题..

得不到编译时的状态和内存占用

暂时先这样..

慢慢来[......]

继续阅读

Written by princehaku

十二月 1st, 2009 at 2:10 下午

446 views

Posted in c/c++

without comments

Pages: Prev 1 2