TIP: Click on subject to list as thread! ANSI
echo: nthelp
to: Geo
from: Gregg N
date: 2004-10-21 22:11:12
subject: Re: Organizing source code

From: Gregg N 

Geo wrote:
> "Gregg N"  wrote in message
> news:417696df$1{at}w3.nls.net...
>
>
>>It was part of the 1998 ISO standard C++. I believe MS Visual C++ 6.0
>>supported it, as did Borland C++ Bulder, gnu g++ 3.2, etc.
>
>
> We are learning using MS Visual C++ 6.0
>
> I'll try to be more specific in the future. To me it's still just C++ as I
> hardly know what it includes let alone the difference between different
> versions. Heck I haven't even loaded MSDN Library on my laptop yet..
>
> Geo.
>
>

That's fine. So you are more specifically learning *Windows* programming
using C++. Even so, your instructor shouldn't be telling you to use the
obsolete C++ headers. MSVC 6.0 has the newer ones.

She also shouldn't be telling you to use the string functions from the C
standard library such as strcpy. The C++ equivalents based on std::string
are easier to use because you don't have to worry about memory allocation
and pointers. For example, in C++

        std::string myStr = "This is a test";
        std::string myOtherStr = myStr;

vs. C style

        char *myStr = "This is a test";
        char *myOtherStr = malloc(strlen(mystr) + 1);
         strcpy(myOtherStr, myStr);
        free(myOtherStr);

Gregg

--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)
SEEN-BY: 633/267 270 5030/786
@PATH: 379/45 1 396/45 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

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™.