原创 碌碌無爲的一年研究生生活

來香港一年多了,入學也已經一年零幾天的時間了。 可惜回想下這一年的時光,除了對這種生活的厭倦,決定放棄academic的生活,沒有別的收穫了。 還有一年的時間,要弄出兩篇conference paper,搞出dissertation,順利

原创 第一次使用g++

比較幸運,嘗試了幾次就OK了。   g++ -c file_1.cpp g++ -c file_2.cpp g++ -c file_3.cpp   g++ -o file_4.out file_1.o file_2.o file_3.o

原创 enumerations

An enumeration is defined using the enum keyword, followed by an optional enumeration name, and a comma-separated list

原创 escape sequence

newline /n vertical tab /v backspace /b carriage return /r formfeed /f alert (bell) /a backslash // question mark /? si

原创 so-called "research"

I want to graduate as soon as possible.     for diseased individuals, find possible solutions. all of them share the sa

原创 爭取早日熬到畢業

中國的知識分子:被閹割的公雞 一種公雞會壓榨學生做無聊的項目掙錢,另一種公雞會push 學生寫paper。。。優良的公雞什麼時候能夠變多些呢?   剛吃飯時跟lz聊天時,都是差不多的感受。很多叫獸都TMD的一樣無恥。   這什麼學術圈啊。

原创 unix c++ 生成的文件名不同導致結果不同

昨天開始學unix c++編程。 自己輸了個最簡單的"hello world"程序,結果運行卻不顯示結果。   搞了半天,終於發現是輸出文件的文件名的問題。   我的源文件"test.cxx",內容如下: #include <iostre

原创 reference

A const reference is a reference that may refer to a const object.   const reference is reference to const.   nonconst

原创 開始學習CVS

CVS (Concurrent Versions System) is  aversion control system. CVS can help people who work on the same project at the s

原创 天涯雜感

今天在tianya看了半天帖,什麼也沒幹成。一直思考人生去了   一篇帖子是“『親子中心 』 [準媽媽樂園]懷孕七個多月離婚,今後的路該怎樣走! ” 另一篇是“ ”   想得太多了,就不想再寫什麼了。。。 故事也都

原创 vs中寫的程序原來可以直接存成unix格式

用的是vs2008   File -> Advanced Save Options... 然後在Line endings 中選擇 unix(LF)   原來vs在這些細節上也在打着unix的主意啊。   點贊 收藏

原创 c++中指針變量--learing "c++ primer"

a simple class with a pointer member: class HasPtr { public: // copy of the values we're given HasPtr(int *p, int i)

原创 const objects are local to a file by default -- learning "C++ Primer Fourth Edition"

When we define a nonconst variable at global scope, it is accessible throughout the program. We can define a nonconst v

原创 free software Richard Stallman

昨天下午聽了Richard Stallman講了一個多小時的free software。   本來也不知道講什麼,只知道跟free software有關。沒想到從頭到尾聽下來,竟然一直是說 free software, GNU, GPL,

原创 字符串以'/0'結束

轉自一CSDN的帖子--http://topic.csdn.net/u/20090922/10/8849db8e-38d3-4e59-aba5-28f7bf0fc55e.html?59748   #include <iostream> u