In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Write versions of the cat_dot()s from the previous exercises to take C-style strings as arguments and return a free-store-allocated C-style string as the result. Do not use standard library functions or types in the implementation. Test these functions with several strings. Be sure to free (using delete) all the memory you allocated from the free store (using new). Compare the effort involved in this exercise with the effort involved for exercises 5 and 6.
Creating this cat_dot was fairly straightforward if a little cumbersome.
No comments:
Post a Comment