Description: Custom class IntChar, save a length not exceeding 4 string with an integer. Suppose a character length is 1 byte.* For example: " ABCD" , kept by an integer, binary form: 0,100,000,101,000,010 0100 0011 0100 0100* length of less than four characters of the string, the rest of complement with 0. The*** the need class IntChar of the properties and methods, but must meet the following requirements:* 1. In class IntChar, can not use the string type the C++ language to define any attributes (variables).* 2. Defined class IntChar, the main function can be used following ways IntChar:** void main () {IntChar IC (" Love" ) * IC.ASC_Print () // in characters string displayed in the form saved in the object IC* IC.Binary_Print () // save the contents of the object IC* IC.Int_Print () in binary form // integer saved in the object IC*}
To Search:
File list (Check if you may need any files):
Exercise 1:IntChar.txt