Question: Please use C++ to code: Exercise P9.6. Junk mail. Write a program that reads in two files: a template and a database. The template file

Please use C++ to code:Please use C++ to code: Exercise P9.6. Junk mail. Write a programthat reads in two files: a template and a database. The templatefile contains text and tags. The tags have the form |1 1213.. and need to be replaced with the first, second, third,... fieldin the current database record. A typical database looks like this: Mr.|Harry

Hackerl1105 Torre Ave. |Cupertino|CA195014 Dr.John | Lee| 702 Ninth Street Apt. 4|SanJose| CA 195109 Miss|Evelyn |Garcia| 1101 S. University Place|Ann Arbor |MI |48105

Exercise P9.6. Junk mail. Write a program that reads in two files: a template and a database. The template file contains text and tags. The tags have the form |1 12 13.. and need to be replaced with the first, second, third,... field in the current database record. A typical database looks like this: Mr.|Harry Hackerl1105 Torre Ave. |Cupertino|CA195014 Dr.John | Lee| 702 Ninth Street Apt. 4|San Jose| CA 195109 Miss|Evelyn |Garcia| 1101 S. University Place|Ann Arbor |MI |48105

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!