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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started