X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: C or C++? Date: 23 Jan 2002 12:19:32 GMT Organization: Aachen University of Technology (RWTH) Lines: 24 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1011788372 12281 137.226.32.75 (23 Jan 2002 12:19:32 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 23 Jan 2002 12:19:32 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jeroen Vandezande wrote: > Hi, > I am learning C and will soon convert at my work my old Turbo Pascal > Progs to C/C++ but what should I use C or C++? I'd make that decision on a per-program basis. If the Pascal program is in traditional Turbo Pascal (version 5.0 or below, IIRC), it will have no OO in it. In that case, C is the better choice because it more closely reflects the type of programming language TurboPascal was, back then. It's also a smaller language, so it should be easier to learn. If, OTOH, your program was made with later version of Turbo Pascal, it may already be using Objects (certainly will if you were using the Turbo Vision user interface library). In that case, you'll be a lot better off translating it into C++. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.