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