Submitted by cjj on Tue, 05/01/2012 - 09:41
Visual Studio 2010 Express提供了一個簡單的C++編譯環境:『Visual Studio 命令提示字元 (2010)』。
開啟後的終端機環境中可以用『cl』命令來編譯連結一般的C++程式。如:
cl hello.cpp
而glut的程式(在glut有正確安裝後)也可以直接編譯。
不過如果要編譯WIN32的程式,在命令列則要加上kernel32.lib,user32.lib,gdi32.lib等額外的程式庫以供連結:
cl hello-win.cpp kernel32.lib user32.lib gdi32.lib /FeHelloWin.exe
Submitted by cjj on Mon, 10/24/2011 - 06:40
Linux版的Google Earth從發行以來,中文的顯示一直都不能隨裝即用。一個主要的原因在於它用的圖形介面程式庫是它所附帶,32位元的QT動態程式庫。因為不是使用者系統中所的QT動態程式庫,使用者不能用qtconfig來更正中文字形。這一點,在一般32位元的Linux系統上,可以用系統中已安裝的動態程式庫(libQT*.so檔們)來取代,詳細步驟可以參考[1]。在64位元的系統上,由於系統中的32位元相容程式庫常有不全(如debian sid的libQtWebKit.so),單純的刪去附帶的版本會造成程式無法啟動。這時,可以試著用[1]中打包好的檔案來跑看看。但如果還是動不了,要自行補全所有的程式庫可能要費好一些功夫。
Submitted by cjj on Thu, 09/15/2011 - 15:03
gltk is a C++ Widget library built on GLUT. The API of gltk is modeled after gtkmm, the C++ interface of the GTK+ library. The implementation of gltk was inspired by GLUI. By building on GLUT, the library is readily ported to platforms where GLUT (or FreeGLUT) is available. These include Linux, Windows, and Mac OS X.
Submitted by cjj on Sun, 08/21/2011 - 07:42
I prefer to indent my code with TABs. Some people do not like that because a TAB can represent different amount of spaces in different editors or viewers. However, I like TABs for their semantic meaning of levels of grouping. How a code editor or viewer displays this grouping information should be left to the liking of its user. And, using two spaces (or four) is just wasting an extra character when we can just set the TAB size to 2 (or 4). I also favor compactness and readability. It's desirable to make the code visually shorter as long as it remains readable.
Submitted by cjj on Tue, 08/16/2011 - 19:09
C++0x was approved by ISO. It adds a great amount of new features to an already-rich language. This very fact has drawn some criticism. And, yet there are still unsatisfied demands for features.
創咨開工作組是一個對在各領域的創造性計劃有廣泛興趣的私人機構。
Creative Constant Development Workgroup is a private organization with broad interest in creative projects of all fields.
Recent comments