Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 1997 20:50:31 +0100
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@freebsd.org
Subject:   Re: C++ Code Help
Message-ID:  <19970328205031.EH34214@uriah.heep.sax.de>
In-Reply-To: <Pine.NEB.3.94.970328100019.1627A-100000@aries.bb.cc.wa.us>; from Chris Coleman on Mar 28, 1997 10:11:28 -0800
References:  <Pine.NEB.3.94.970328100019.1627A-100000@aries.bb.cc.wa.us>

next in thread | previous in thread | raw e-mail | index | archive | help
As Chris Coleman wrote:

> I am writing my first FreeBSD C++ program. :-)

You picked a very poor example as a starting point. ;-)

> 	I don't know how to convert integer numbers, such as "1500" to an
> ascii string.

Create a strstream object, and use the << operator.

> 	How do I rebuild the user database after I have made all the
> changes to master.password?

By executing pwd_mkdb(8).

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970328205031.EH34214>