随笔 - 29  文章 - 13  trackbacks - 0
<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(1)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

c++

Linux

Tools

搜索

  •  

最新评论

阅读排行榜

评论排行榜

一、安装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 四海 阅读(227) | 评论 (0)编辑 收藏
一、virtualpc 安装fedora core 4
   
二、config display
    装好后发现不能用gui界面
    vi inittab
    id:3:*****

    system-config-display --reconfig

三、config network
    开始不能用,后来好使了,virtual pc设的是物理网卡
    网络怪异还是不知道为啥


四、gcc与g++

    g++用于c++

posted @ 2006-08-19 12:43 四海 阅读(172) | 评论 (0)编辑 收藏
一、paython缩进影响语义,看下边例子结果不同
判别仅在于缩进

例:
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)


二、与大多数的语言不同,一个 Python 函数,方法,或属性是私有还是公有,完全取决于它的名字。

三、Python不支持重载






posted @ 2006-07-27 16:34 四海 阅读(93) | 评论 (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
*/
1.bmp

/*
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 四海 阅读(157) | 评论 (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 四海 阅读(131) | 评论 (0)编辑 收藏
http://lv.likecan.com/

如果你是整天对着电脑的"白骨精"及IT一族,那么你是否有下面的这些心愿呢?
  • 让自己的桌面永保新鲜、漂亮;

  • 不用自己动手,绝美壁纸就会全自动地更新;

  • 在对着电脑埋头工作时,仍会天天得到一份惊喜;

LikeView 的出现,让这一切成为可能。
您使用 LikeView,即可轻松自在地享受一场绝美的桌面视觉盛宴。


posted @ 2006-07-17 17:32 四海 阅读(474) | 评论 (1)编辑 收藏
凯屋家眼卫士

http://www.cavesoft.com/chinese/cpye.htm

主要功能:

 


-重新设计界面

-增加播放图片动画功能

-增加新的保护屏种类

-增加在线保健知识

-增加终止休息


版本:2005

发布日期:2005.5

发布方式:免费软件


运行环境:

-Windows 2000/XP/2003

-IE5.5或更高


posted @ 2006-07-17 17:30 四海 阅读(199) | 评论 (0)编辑 收藏
扫除木马后发现俺的网络时快时慢,
怀疑有未知网络程序

找到一个免费的防火墙软件“风云防火墙”
http://www.218.cc/

跟“费尔”比较相似但可以安装在"win2000 server"上






posted @ 2006-07-17 14:49 四海 阅读(115) | 评论 (0)编辑 收藏
这阵感觉俺的电脑很慢,于是在网上寻找了一些木马清除软件
试用之后,发觉yahoo的“反间谍专家”还可以

http://cn.zs.yahoo.com/safe04_2.htm


功能介绍


反间谍专家能够通过扫描系统薄弱环节以及全面扫描硬盘,智能检测和查杀超过上万种木马、蠕虫、Adware、Spyware,如“SCO炸弹、五毒虫、网 银大盗、MSN骗子、QQ尾巴病毒、寄生木马,冰河类文件关联木马,密码解霸,传奇、奇迹等游戏密码偷窃木马”等,终止它们的恶意行为,当检测到可疑文件 时,反间谍专家还可以将其隔离,从而全面保护您的网络安全。
posted @ 2006-07-17 14:43 四海 阅读(444) | 评论 (1)编辑 收藏
仅列出标题
共3页: 1 2 3