- 博客(17)
- 资源 (8)
- 收藏
- 关注
原创 机械键盘黑轴,青轴,茶轴,白轴的区别
主要区别有:1、手感:机械键盘一般有4种轴(茶,青,黑,白),基本可以满足目前所有80%人,而且手感是薄膜键盘无法比拟的!2,寿命:机械键盘一般可以有5-10年的使用寿命,一般是薄膜键盘寿命的几倍!3,耐用:机械键盘一般不会随着时间的推移手感发生变化,它的手感绝对不会想薄膜键盘时间长而发硬发涩!什么叫机械键盘?机械式(Mechanical)机械式键盘的底部一定有一片PCB板
2012-04-02 21:28:07 46461 2
转载 为什么Lisp语言如此先进?(译文)
上周,《黑客与画家》总算翻译完成,已经交给出版社了。翻译完这本书,累得像生了一场大病。把书稿交出去的时候,心里空荡荡的,也不知道自己得到了什么,失去了什么。希望这个中译本和我的努力,能得到读者认同和肯定。下面是此书中非常棒的一篇文章,原文写于八年前,至今仍然具有启发性,作者眼光之超前令人佩服。由于我不懂Lisp语言,所以田春同学帮忙校读了一遍,纠正了一些翻译不当之处
2012-04-28 13:11:27 747
原创 C语言函数调用方式的区别
通常在使用VC进行函数定义时会指定该函数调用方式,诸如: int __stdcall max(int a, int b) { return a>b?a:b; } int __cdecl min(int a, int b) { return a } bool __fastcall equal(int a
2012-04-26 14:58:10 851
原创 一种优化的字符串排序 泛型算法
// VC6[o] BCB4[o] GCC295[o]#include #include #include #include #include using namespace std;struct strtab_cmp{ typedef vector::iterator strtab_iterator; bool operator()(const pair& x
2012-04-23 19:12:24 611
原创 从输入流一次返回一行的iterator
// VC6[x] BCB4[x] GCC295[o]#include #include #include #include using namespace std;class line_iterator{ istream* in; string line; bool is_valid; void read() { if (*in) getli
2012-04-23 18:45:51 611
原创 STL算法 count_if函数 accumulate函数
//向量中使用STL算法 count_if函数 accumulate函数#include#include#include#includeusing namespace std;bool pass(int n){ return n>=3;}bool less(int n){ return n<3;}void main(){ int n[]={4,2,5,1,3
2012-04-22 23:22:20 821
转载 STL中accumulate函数的使用
#pragma warning (disable : 4786)#include #include #include #include #include #include #if _MSC_VER > 1020 // if VC++ version is > 4.2using namespace std; // std c++ libs implemented in std#
2012-04-22 23:08:57 1559
原创 STL标准库中的算法函数
非修改性序列操作(12个)类型函数名说明循环for_each()对序列中的每个元素执行某操作。查找find()在序列中找出某个值的第一次出现的位置。find_if()在序列中找出符合某
2012-04-11 21:43:23 703
原创 STL标准算法库 copy函数的闪光应用
// stl_learn02.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include #include using namespace std;class TNode{ int _n1, _n2, _n3;publ
2012-04-11 21:39:43 780
原创 KUL目前发现的bug
bug1.stack与tabctrl控件嵌套bug.bug2.全局数据绑定不支持中文。bug3.Js函数自动完成和KUL插件 TOOLBAR插件不能用虚拟路径,要用真实路径。bug4.JS扩展中namespace命名中不能有“.”bug5.查看ctrl+shift+N函数提示时,要在运行unit时才能查看unit下扩展函数。bug6:kdesktop.exe运行时错误。
2012-04-11 21:30:01 544
原创 VC++6.0与VS的区别(代码移植中发现的区别,待添加)
1. 在VC++6.0中,读文件操作函数用FILE *fp=fopen(filename, "r+"); 在VS2008中则为 FILE *fp; fopen_s(&fp,filename, "r+");2、在在VC++6.0中,写文件更效率的方法是 ofstream outfile(filename); 然后 outfile 在VS2008中要实现同一功能则可以将要写入文件的
2012-04-11 14:11:42 2514
原创 C++STL容器使用经验总结
第1条:慎重选择容器类型。标准STL序列容器:vector、string、deque和list。标准STL关联容器:set、multiset、map和multimap。非标准序列容器slist和rope。slist是一个单向链表,rope本质上是一“重型”string。非标准的关联容器hash_set、hase_multiset、hash_map和hash_multimap。v
2012-04-09 15:18:50 13547 3
原创 一些常用的字符操作函数
#include template string ConvertToString(T value) { stringstream ss; ss << value; return ss.str();}string Align_Left(const string &showdata, int space ) { //int spacelong=atoi(spa
2012-04-09 11:19:27 826
转载 如何将int,double转std::string? (C/C++) (template)
std::string为library type,而int、double为built-in type,两者无法互转,这里使用function template的方式将int转std::string,将double转std:string。 1/* 2(C) OOMusou 2006 http://oomusou.cnblogs.com 3 4Filename : Ar
2012-04-08 10:20:31 2341
转载 将clock_t转化为秒值在Windows与Linux平台下的差异
平时写测试程序的时候常常要计算程序执行的时间,尤其是最近练习Intel多核编程时,需要判断打开openmp参数与否的执行时间的比较。通常代码是这样写的:#include clock_t start, stop;....start = clock();do_something();stop = clock();printf("%f", (double)(sto
2012-04-03 13:04:04 2895
原创 windows下intel C/Fortran 混合编程
源文件==========================c_sub.C:=====================================================#include #ifdef _cplusplusextern "C" void{#endif#define add_c ADD_Cextern
2012-04-03 11:05:35 2181
CUDA_Zcuda能力检测工具
2013-04-15
GPU-Z.0.6.9
2013-03-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人