Lab 11 1. Write a C++ program that reads characters from the file mess.txt and sorts them into letters, digits, and symb
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Lab 11 1. Write a C++ program that reads characters from the file mess.txt and sorts them into letters, digits, and symb
Lab 11 1. Write a C++ program that reads characters from the file mess.txt and sorts them into letters, digits, and symbols, then prints them neatly into a new file sorted.txt. Assume the number of characters in the file is unknown Hints: use isdigte) to check ifc is a digit use isginhac) to check if c is an alphabet • Everything else is a symbol use the following lines to reset your itstream pointer to the beginning of the file to sleest: unseekg(0.ios-beg): . Sample Output ZOD I- sorted.txt Letters digits symbols f 2 j 8 f 7 H 4 & P. 8 DONO @* Rop de * N 2. At a gift shop, customers can choose to print their names on a small keyring. The maximum number of letters that can fit on the keyring is 12, including the space between the first and last TEL. AL
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!