Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > C++ code for APUE book by W.R.Stevens

Reply
Thread Tools

C++ code for APUE book by W.R.Stevens

 
 
tao3256
Guest
Posts: n/a
 
      04-20-2007
Hi, all:

Does anyone try to do C++ recoding of the original C code of W. R.
Stevens' book "Advanced Programming in the Unix Environment",
ISBN:0201563177, 1992 ? I got the redhat linux version of C code, works
works fine in my knoppix linux2.4.6 (installed).

I am trying to pack the C code into C++, following the C++ guideline
1. using C++ namespace to get rid of static global functions,
2. using C++ namespace to get rid of #define constants,
3. using C++ class to pack functions for data members, such as file,
proc, signal, ..., etc.

Currently my system specification:
1. CPU 2GH 686 intel, 256MB memory, DVD, USB, etc.
2. WindowsXP, qemu + knoppix(iso)

Current Status:
1. knoppix linux 2.4.6 running in qemu window under windowsXP,
2. able to access floppy, NTSF windowXP C:hard drive (ReadOnly), and
ext3 qemu hard drive image(ReadWrite),
3. re-compiled original redhat C code successfully,
4. recode original ourhdr.h to a namespace-oriented ourhdr.h,
5. compiled code using g++ with namespace-oriented ourhdr.h successfully,

Work to do:
1. write useful C++ classes "Type" (e.g. fileType) to categorize and
pack functions and data,
2. re-write all C code to C++ code.

Anyone interested on this? let me know. The reason to re-invent the
wheel is to help current C++ programmers to get into unix/linux
programming. The original C code is messy (my opinion only). Mr.
Stevens passed away long ago, now is the time to move forward to C++
with his good book.

Dr. Boris Chang
 
Reply With Quote
 
 
 
 
Dizzy
Guest
Posts: n/a
 
      04-20-2007
tao3256 wrote:

> Hi, all:

Hello

>
> Does anyone try to do C++ recoding of the original C code of W. R.
> Stevens' book "Advanced Programming in the Unix Environment",
> ISBN:0201563177, 1992 ? I got the redhat linux version of C code, works
> works fine in my knoppix linux2.4.6 (installed).
> Anyone interested on this? let me know. The reason to re-invent the
> wheel is to help current C++ programmers to get into unix/linux
> programming.
> The original C code is messy (my opinion only). Mr.
> Stevens passed away long ago, now is the time to move forward to C++
> with his good book.


There is a (rather recent) second edition and still uses C. I don't think it
should use C++ when it's presenting a POSIX C API (so there isn't much
to "move forward to C++"). Maybe when we will have a POSIX C++ API there
would be a book covering that.

Boost should cover most of the C++ programmers needs that are not covered by
the current standard library and I would rather have people use boost than
some yet another API to wrap POSIX (and others) features.

--
Dizzy

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Book report (it took me 16 years to read the book ) Mara Computer Support 4 04-11-2008 03:35 PM
`Comparability' of code snippets (from book `Code complete') lovecreatesbea...@gmail.com C Programming 14 11-20-2007 09:02 PM
Does anyone got the e-book for the book MCTS Training Kit (70-528) =?Utf-8?B?WWlu?= MCSD 0 11-18-2006 03:30 AM
"Java Performance Tuning Book" anyone read this book? coltrane Java 2 09-27-2006 01:13 PM
awt book+java animation book Thanasis \(sch\) Java 1 10-14-2004 03:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57