Question: I need a c++ code that: 1- Read from a text file using C++ example: mytext.txt 2- a function that adds three letters to each

I need a c++ code that:

1- Read from a text file using C++ example: mytext.txt

2- a function that adds three letters to each latter in that text file

for example, if there is a "hello world" inside the text file

the function will make it look like "habcezyeloiulghtoiuy wnfroewqrmnilkitduyt" if you note the first latter h follow with three letters abc the e follow with another three zye .... etc

so the function is like hashing function that adds for each latter another three letters. print the hashing in this function in main.

3- a function that gives me the solution for the first function and prints the solve for the hashing which is the info inside the text file in the main.

example: hello" h---e---l---l---o--- print h then delete the other three letters then print e then delete the other three letters ...etc at final it will look like original word inside the text file "hello".

the text file could include sentences no limit.

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!