Chinaunix首页 | 论坛 | 博客
  • 博客访问: 68101
  • 博文数量: 22
  • 博客积分: 1406
  • 博客等级: 上尉
  • 技术积分: 190
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-13 13:18
文章分类

全部博文(22)

文章存档

2011年(1)

2010年(21)

我的朋友

分类: LINUX

2010-02-20 18:17:58

When programming, we often want to refer to the header files of POSIX or classes in C++, taking APUE for example.

$ man stdlib.h
$ man utistd.h
$ man other header files

You should first install some packages; otherwise you wouldn't man any of them in your Linux/Unix OS.

sudo apt-get install:
1. manpages-dev
2. manpages-posix-dev

After you have installed, you can find it easy to look up what you would like to read about the headers and others including ERRORS, STDINS, STDOUTS, etc.

Further more, if you want to man class string in C++, you may find it impossible to use directive man, because your system lacks of some packages.
How to solve this problem:
1. apt-get install libstdc++-?-doc
2. man std::string or others
3. if you still have some problems, you can use man C++Intro to solve.

These will help you code with C of POSIX and C++ more easily and effectively.
阅读(871) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~