Question: Laboratory Work No. 6 C++ STL part 2 Task 1: Write a program that takes in a string, creates a new string from the first
Laboratory Work No. 6 C++ STL part 2 Task 1: Write a program that takes in a string, creates a new string from the first 3 characters and appends it to the beginning and the end of the input string. If the input string is shorter than 3 characters then append a 000 to the beginning and the end of the string; Task 2: Using std::map, Write a program that defines a map of integers and strings. Receive the users input and search for an element using the find ( member function. If the element is found, delete it and print out the remaining map content
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
