联系
主题 [当前:61 ~ 76, 总共: 76]
Knight's Tale » 2010
Be careful of the use of data format in function "scanf"
技术 • 2010-06-18 23:05
when you use C-sytle scanf function, you should notice the usage of data typpe in "scanf". Everyone knows that "int" data type is an integer, its data format in "scanf" is "%d". So, you may think that "short" type is the same as "int", and you may write c……
继续阅读
Error: already defined in MSVCRT.lib(MSVCR100.dll)
技术 • 2010-06-17 19:54
If you meet this error in VS, it's because you are mixing code that was compiled with /MD (use DLL version of CRT) with code that was compiled with /MT (use static CRT library). That cannot work, all source code files must be compiled with the same set……
继续阅读
Another Journey
生活 • 2010-06-13 14:32
看了小雅给我写的文字,我的心情放松了很多。 唯一遗憾的是再也看不见天使的笑脸了。 What about starting a new Journey?
继续阅读
我的第一张软件著作权证书
生活 • 2010-06-13 10:03
<img class="aligncenter size-full wp-image-1484" title="3D Beautification Software1.0" src="http://img2.jintiankansha.me/get5?src=http://ww2.sinaimg.cn/bmiddle/60c9620fgw1ei99384ceyj20ly0asadr.jpg" alt="" width="632" height="……
继续阅读
孤独
生活 • 2010-06-11 23:27
如何在面对自己灵魂的时候 忍受现实中的痛苦 将被压抑的精力投于创作? 看破红尘易,忍受孤独难 悲观,瞎忙都是消极的 而直面现实 揭开伤口 靠内心的力量战胜孤独的人 才是一个伟大的人
继续阅读
Error: Memory crash _BLOCK_TYPE_IS_VALID(pHead -> nBlockUse)
技术 • 2010-06-10 00:12
The memory management in C++ is really a headache. This evening I run my program, and get error: "Memory crash _BLOCK_TYPE_IS_VALID(pHead -> nBlockUse)" at runtime. This error may be caused by several reasons: 1. Write buffer overflow[1]. <pre ……
继续阅读
简单的追求
生活 • 2010-06-07 23:52
最近很喜欢一本书,是周国平的《人生哲思录》。 平时一直很忙,忙已经成了我的代名词。但每次洗完澡后躺在床上时,还是会想起那些伤心的往事、最近发生的事。我很害怕记起这些事,因为每每想起来,我都挺难过,从而导致失眠。我更不敢想象未来的事,因为我害怕寂寞的城市里会把我淹没在人海之中。我更害怕自己因为害怕孤独,痛苦,而失去了我的梦想,失去了我活着的意义。 我一直都很累。一直很辛苦,没有假日,没有旅行,没有同龄人那些美好的东西。我每天必须编写数以计万的枯燥代码,必须一直坐着充满辐射的实验室里,必须一天超8小……
继续阅读
Some bad C++ programming habits which may lead to Memory Leak Error
技术 • 2010-06-07 22:56
There are some bad programming habits in my experience which can lead to Memory Leak: Use inherit class structure. But you never writing virtual destructions method for your base class. use "new" to create one object, but forgetting ……
继续阅读
Visual Assist for Visual Studio 2010
技术 • 2010-06-06 19:14
为你的Visual Studio 2010 使用无限期VC助手的方法 1. 从官网下载Visual Assist原始安装文件 http://www.wholetomato.com/downloads/getBuild.asp?VA_X_Setup1822.vsix 2. 下载破解文件:<a href="http://d.downl……
继续阅读
深爱童话
生活 • 2010-06-04 00:00
开心?伤心? 谁也不清楚 有时候感觉很对 那就是天堂 有时候感觉出错 那就是地狱 幸福与绝望只是在一念之差 而人们却总是在那之间不断徘徊 纠结着 期盼那飘渺无期的美好未来 却一直是在茫茫人海中等待着 等待着深爱 等待着自己编织的美丽童话
继续阅读
Non-Memory Leak version Singleton pattern implementation with C++
技术 • 2010-06-03 10:53
I wrote a single pattern with C++ implementation[1] article the day before yesterday. However, this version has one fatal problem: it has Memory L……
继续阅读
Never call virtual functions during construction
技术 • 2010-06-02 16:21
I read <Effective C++> at one time, and I know there is a criterion which is "Never call virtual functions during construction and destruction". But as we all know, genuine knowledge comes from practice. We will never have in-depth understanding of k……
继续阅读
error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2'
技术 • 2010-06-02 16:01
Normally, _ITERATOR_DEBUG_LEVEL is set automatically by choosing either the Debug or Release build mode. So when you meet this error, it may well be that your projects in your solution have different build modes ( one is Debug and the other is release ) .……
继续阅读
Don't use "memset" function for you "std::string" objects! (Memory Leaks Error)
技术 • 2010-06-02 15:47
Today I meet a memory leaks error in my program and I always cannot find the place where memory leaks happen. Though I use MS Memory Leaks Detect Tricks, it does……
继续阅读
Summary on "const" in C++
技术 • 2010-06-01 22:27
"const" is a very common key word in C++ programming language. I use lots of "const" in my previous project and now I want to write some summary about the usage of it. I suppose there is a Class "A". const with "Pointer" const ……
继续阅读
苏打绿--我的未来不是梦
生活 • 2010-01-03 13:37
<param name="src" value="http://player.youku.com/player.php/sid/XMTM2MjIwM……
继续阅读