Question: / * TODO: Test 5 - Create a TextCodec class and Encode member method * = = = = = = = = = =
TODO: Test 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 TEXTCODEC",
without quotes, to the top of the file.
TODO: Uncomment out line above.
Once the class has been created, initialize a
TextCodectype 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 rightclicking 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 Testshort int offset, string message
return ;
TODO: Test 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
TextCodectype 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 until Test
is fully completed.
static string Testshort int offset, string message
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
