[prog] C++ Problem
Robert J. Hansen
rjh at sixdemonbag.org
Mon Apr 7 08:15:28 EST 2003
> Preferable for the C language, I assume? I would imagine for C++, most
> would prefer your suggestion of std::string.
Right--I personally think C-style string handling should be Considered
Harmful. The less I use C-style string handling, the better I feel.
> Even your suggestion above is incorrect. You assume a->vehicle_name is at
> least as large as name. If it were less than 20 characters, then you're
I no longer have the original message, but weren't both fields declared
as char[20]s?
More information about the Programming
mailing list