Chapter 7. Stringing Along
You may recall the discussion near the beginning of Chapter 6 of native vs. user defined variable types. I provided a list of native C++ variable types; namely, char, short, long, float, double, bool, and int. We've already created several classes for our inventory control project, and now it's time to apply what we've learned to a more generally useful type, the string. We've been using strings for a long time, and now it's time to see exactly how to implement the string class we've been using.
Get Learning to Program in C++ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.