Starting from:

$30

CSE165-Lab 3 Solved

1.                   Modify the Handle.h, Handle.cpp, and UseHandle.cpp files at the end of Chapter 5 to use constructors and destructors.  

 

2.                    Create a Text class that contains a string object to hold the text of a file. Give it two constructors: a default constructor and a constructor that takes a string argument that is the name of the file to open. When the second constructor is used, open the file and read the contents into the string member object. Add a member function contents() to return the strings so (for example) it can be printed. In main(), open a file using Text and print the contents.  

 

Create a class containing an array of int. Index through this array using a pointer to member

More products