TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: TIM HUTZLER
from: BOGDAN SHEPTUNOV
date: 1998-01-10 10:16:00
subject: Re: how should I return

Hello Tim.
29 Dec 97 16:16, Tim Hutzler wrote to Bogdan Sheptunov:
 BS>> I need implement method which should read a string from configuratio
 BS>> and return a part og this string, such as:
 BS>> "Server port number: 101"
 BS>> method should return "101".
 TH> Did you get a solution yet?
Yeh. An ugly one :(. I use internal field to store these lines. I mean
class IniFile
{
  ....
 private:
  ...
     char _buffer[BUFFER_MAX_LENGTH]
  ...
}
Another way may be to use reference to the external buffer as the methods 
parameter but I prefered the case described above
Bogdan
--- Внутриматочная спираль диаметром 2.50+ метра
---------------
* Origin: Crematory (2:463/285.82)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.