加载中
Ubuntu 下最简明的翻译词典(调用GoogleAPI,运行在终端)

在Ubuntu上看英文书的时候有少量单词就是不认识,尝试使用现在翻译工具如星际等,感觉不好,太复杂了,启动也慢,不用时也不想它开着浪费资源(另星际的取词功能有严重BUG)。于是决定自己写...

2009/08/30 09:45
3.6K
Ubuntu manpage 安装

Ubuntu manpage 有些章节没有,需要自己安装。 $ sudo apt-get install manpages $ sudo apt-get install manpages-posix $ sudo apt-get install manpages-posix-dev 其中: manpages 包含 ...

2009/08/29 15:07
2.5K
编译带其它库文件的C程序

问题:今天照前一篇文章做一个小的练习的时候,发现一个错误,好像是找不到sin这个函数,大家可以指点一下么? 源码: #include #include int main(void) { double pi = 3.1416; ...

install QQ i386 on ubuntu amd 64

我的系统是Ubuntu 9.04 amd64版的,原来一直装不上QQ,今天碰巧找到解决的办法了,分享一下。 第一步:去QQ官方网下载QQforUbuntu安装包。 第二步:安装lib32相关包(有150多M) sudo apt-g...

C++ warning: control reaches end of non-void function

C++ warning: control reaches end of non-void function REASONS: this warning indicate that you forgot the return statement in a non-void function....

2009/08/23 21:47
977
My first c++ class : Tree

A simple c++ class, Contain three file: /* * Tree.h * * Created on: Aug 23, 2009 * Author: sai */ #ifndef TREE_H_ #define TREE_H_ #include using namespace std; c...

c++ Error : non-member function cannot have cv-qualifier

When I building file: ../src/Tree.h, I got this error: ERROR:../src/Tree.h:22: error: non-member function ‘std::ostream& operator<<(std::ostream&, const Tree&)’ cannot have cv...

2009/08/23 20:11
2.3K
新发现:高速下载Eclipse

分享一个新发现: 今天去 www.eclipse.org 下载 Eclipse 的时候,起初下载速度只有 56k/s。速度有些慢。 再很下一看居然有一个提示: Get It Faster Here 下面列出了好几个下载地址,我选择了...

如何进行分析设计

分析设计的基本任务: 什么是对象?思考的是如何将项目分成多个组成部分。 它们的接口是什么?思考的是需要向每个对象发送什么消息。 第0阶段:制定计划 我们必须决定在此过程中必须有哪些步...

对接口的新理解

以前在进行类设计的时候,按我最先读到的软件设计书籍里面讲,想到的是这个类有什么方法或这个类有什么行为,从这个角度上进行类设计的时候,很多时候会对方法名的确定产生疑惑,在设计的时候...

2009/08/20 14:28
226
About keyword const

const Saying const as part of variable's difinition promises that we are not going to change the value of the variable at the rest of its lifetime. We say that a variable is con...

2009/08/19 22:20
128
Usage of std::endl

Writing the value of std::endl to output stream have two function: First: Ends the line of output. Second: Flushes the buffer, which forces the system to write to the output str...

2009/08/19 21:15
92
Three events that cause the system to flush the buffer

First, the buffer might be full, in which case the library will flush it automatically. Second, the library might be asked to read from the standard input stream. in that case, ...

2009/08/19 21:01
113
Add Open Terminal Here / Open Shell Prompt Here Right Click Menu To a File Manager

Question: How do I open a shell prompt or gnome-terminal at the current location while browsing directories and files via nautilus file manager? I'd like to see Open Terminal / ...

指针与引用做参数的不同

指针和引用一直是学习C++时的一个难点,不知道什么时候应该用指针,什么时候应该用引用。下面是指针与引用做为函数时的不同,看了之后,也许上面的问题就不是问题了,呵呵。 1.两者都可以不用...

2009/08/17 19:00
583
[转载]java里抽象类和接口的区别

下面的这篇文章讲的十分透彻了,所以转载之 abstract class和interface是Java语言中对于抽象类定义进行支持的两种机制,正是由于这两种机制的存在,才赋予了Java强大的面向对象能力。abstrac...

2009/08/17 19:00
194
Netbeans 6.7 汉字显示问题解决方案

今天在 Windows 7 上安装了 Netbeans 6.7 RC 后,首先想到的就是换一种字体,没有想到一个老Bug又出现了,把字体换成 Courier New 后,汉字显示为方格,之前解决过这个问题,但是忘了,让我在...

2009/08/17 19:00
638
类图中的关系

类图中的关系有以下几种:一般化关系、关联关系、聚合关系、合成关系和依赖关系。 1、一般化关系 表示类与类之间的继承关系、接口之间的继承关系或类与接口之间的继承关系。用空心三角箭头从...

2009/08/17 19:00
231
导致一个软件可维护性较低的四个原因

导致一个软件可维护性较低,也就是说会随着性能要求的变化而“腐烂”的原因有四个:过于僵硬、过于脆弱、复用率低、耦合过高。 1、过于僵硬 指很难在一个软件系统里加入新的功能。因为加入一...

2009/08/17 19:00
280
软件设计的目标

为了克服“导致一个软件可维护性较低的四个原因”,我们要进行良好的软件设计,其目标是系统具有可扩展性、灵活性和可插入性。

2009/08/17 19:00
173

没有更多内容

加载失败,请刷新页面

返回顶部
顶部