一、安裝SDL
wget http://www.libsdl.org/*******
二、rpm -i ***.rpm
三、rpm -q --filesbypkg ***.rpm
四、helloworld.cpp
$??? vi helloworld.cpp
#include <SDL/SDL.h>
int main(int argc,char* argv[])
{
??? SDL_Init();
??? SDL_Exit();
}
五、g++
g++ helloworld.cpp -lSDL -lSDLmain
ok
posted @
2006-08-19 12:46 四海 閱讀(240) |
評論 (0) |
編輯 收藏
一、virtualpc 安裝fedora core 4
???
二、config display
??? 裝好后發(fā)現(xiàn)不能用gui界面
??? vi inittab
??? id:3:*****
??? system-config-display --reconfig
三、config network
??? 開始不能用,后來好使了,virtual pc設(shè)的是物理網(wǎng)卡
??? 網(wǎng)絡(luò)怪異還是不知道為啥
四、gcc與g++
??? g++用于c++
posted @
2006-08-19 12:43 四海 閱讀(187) |
評論 (0) |
編輯 收藏
一、paython縮進影響語義,看下邊例子結(jié)果不同
判別僅在于縮進
例:
def testIf(params):
??? '''測試If'''
??? if (params %2)==0:
??????? ret= 'testIf %2=0'
??? else:
??????? ret= 'testIf %2=1'
??????? '''!!!!!!!'''
??????? print __name__
??? return ret
def testIf2(params):
??? '''測試If'''
??? if (params %2)==0:
??????? ret= 'testIf %2=0'
??? else:
??????? ret= 'testIf %2=1'
??? '''!!!!!'''
??? print __name__
??? return ret
print testIf(2)
print testIf2(2)
二、與大多數(shù)的語言不同,一個
Python 函數(shù),方法,或?qū)傩允撬接羞€是公有,完全取決于它的名字。
三、Python不支持重載
posted @
2006-07-27 16:34 四海 閱讀(101) |
評論 (0) |
編輯 收藏
/*
exception handler
*/
?? class El;
?? class E2;
?? void f() throw(E1, std::bad_exception)
????????????????????????? //throws exception of type El or
????????????????????????? //bad_exception for any other exception type
?? {
????? ...
????? throw El();???????? //throws exception of type El
????? ...
????? throw E2();???????? //calls unexpected(), which throws bad_exception
?? }
??? ???
/*
numeric limits
*/
????? cout << "max(short): " << numeric_limits<short>::max() << endl;
????? cout << "max(int): " << numeric_limits<int>::max() << endl;
????? cout << "max(long): " << numeric_limits<long>::max() << endl;
/*
container
*/

/*
algorithm
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
void print(int num)
{
??? cout<<num<<endl;
}
int main()
{
??? vector<int> list(20);
??? generate(list.begin(),list.end(),rand);
??? for_each(list.begin(),list.end(),print);
??? cout<<" finish . press <<enter>> to exit "<<endl;
??? cin.get();
}
posted @
2006-07-19 13:14 四海 閱讀(170) |
評論 (0) |
編輯 收藏
Anonymity 4 Proxy (A4Proxy) is a personal anonymous proxy server and anonymizing
software. Once you install on your own computer, it will allow you to surf the
Web with privacy. This local proxy server includes a database with hundreds of
anonymous public proxy servers
located all over the world. The program is essential for those who value their
privacy and who want to surf the web anonymously. With A4Proxy, you can scan each
server, check its response time, confirm its anonymity, and test its speed in
connection with the website or ftp-server that interests you (HTTP, HTTPS (Secure
HTTP) and FTP are supported). You can choose the best candidate as your default
proxy, or select the option to use a different proxy for each request. Advanced
features allow you to actively hide yourself while surfing: A4Proxy can generate
a fake IP address for each request, selectively modify HTTP variables, block cookies,
and more. The program also helps to avoid network congestions and can be used
by webmasters and network administrators to test their servers. Benefits
in detail
Anonymous Proxy
Servers FAQ - what it is all about.
You can also use A4Proxy to share your Internet connection
with others over a LAN - in this case, all network computers will connect to
the Internet via A4Proxy, and each member of your family (or each colleague)
will have an anonymous Internet connection of their own
posted @
2006-07-19 10:35 四海 閱讀(142) |
評論 (0) |
編輯 收藏
http://lv.likecan.com/
如果你是整天對著電腦的"白骨精"及IT一族,那么你是否有下面的這些心愿呢?
讓自己的桌面永保新鮮、漂亮;
不用自己動手,絕美壁紙就會全自動地更新;
在對著電腦埋頭工作時,仍會天天得到一份驚喜;
LikeView 的出現(xiàn),讓這一切成為可能。
您使用 LikeView,即可輕松自在地享受一場絕美的桌面視覺盛宴。
posted @
2006-07-17 17:32 四海 閱讀(488) |
評論 (1) |
編輯 收藏
凱屋家眼衛(wèi)士
http://www.cavesoft.com/chinese/cpye.htm
主要功能:
?
-重新設(shè)計界面
-增加播放圖片動畫功能
-增加新的保護屏種類
-增加在線保健知識
-增加終止休息
版本:2005 發(fā)布日期:2005.5
發(fā)布方式:免費軟件
運行環(huán)境:
-Windows 2000/XP/2003
-IE5.5或更高
posted @
2006-07-17 17:30 四海 閱讀(207) |
評論 (0) |
編輯 收藏
掃除木馬后發(fā)現(xiàn)俺的網(wǎng)絡(luò)時快時慢,
懷疑有未知網(wǎng)絡(luò)程序
找到一個免費的防火墻軟件“風(fēng)云防火墻”
http://www.218.cc/
跟“費爾”比較相似但可以安裝在"win2000 server"上
posted @
2006-07-17 14:49 四海 閱讀(122) |
評論 (0) |
編輯 收藏
這陣感覺俺的電腦很慢,于是在網(wǎng)上尋找了一些木馬清除軟件
試用之后,發(fā)覺yahoo的“反間諜專家”還可以
http://cn.zs.yahoo.com/safe04_2.htm
功能介紹
反間諜專家能夠通過掃描系統(tǒng)薄弱環(huán)節(jié)以及全面掃描硬盤,智能檢測和查殺超過上萬種木馬、蠕蟲、Adware、Spyware,如“SCO炸彈、五毒蟲、網(wǎng)
銀大盜、MSN騙子、QQ尾巴病毒、寄生木馬,冰河類文件關(guān)聯(lián)木馬,密碼解霸,傳奇、奇跡等游戲密碼偷竊木馬”等,終止它們的惡意行為,當(dāng)檢測到可疑文件
時,反間諜專家還可以將其隔離,從而全面保護您的網(wǎng)絡(luò)安全。
posted @
2006-07-17 14:43 四海 閱讀(491) |
評論 (1) |
編輯 收藏