Question: / * TODO: Test 5 - Create a TextCodec class and Encode member method * = = = = = = = = = =

/* TODO: Test 5- Create a TextCodec class and Encode member method
*====================================================================
* First, create a TextCodec class that contains
* the constructors, attributes and Encode() method
* outlined on FSO and add the line "#define TEXT_CODEC",
* without quotes, to the top of the file.
*
* TODO: Uncomment out line 8 above.
* Once the class has been created, initialize a
* TextCodec-type object using the given offset
* parameters.
*
* Finally, call the Encode() method on the TextCodec
* object you have created and pass the given message
* string parameter. Return the string result of the
* Encode() method.
*
*
* Tips:
*- You should create a new TextCodec.cpp by right-clicking the
* Source Files folder in the Solution Explorer, and selecting
* "New Item..."
*- Once you have created your TextCodec.cpp file, it will not be
* accessible within the Submission.cpp file until you uncomment
* the corresponding lines above.
*/
static string Test5(short int offset, string message){
return {};
}
/* TODO: Test 6- Create the Decode member method
*=================================================
* Inside the TextCodec class within your TextCodec.cpp file,
* create a new member method called Decode() using the return
* type and code provided on FSO.
*
* Once the method has been created, initialize a
* TextCodec-type object using the given offset and
* message parameters.
*
* Finally, call the Encode() method on the TextCodec
* object you have created and pass the given message
* string parameter. Return the string result of the
* Encode() method.
*
*
* Tips:
*- You will not be able to complete Test 6 until Test 5
* is fully completed.
*/
static string Test6(short int offset, string message){
return {};
}
 /* TODO: Test 5- Create a TextCodec class and Encode member

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!