Question: Write in C++ 1. Create a Cstring variable that contains a name, age, and title. Each field is separated by a space. For example, the
Write in C++
1. Create a Cstring variable that contains a name, age, and title. Each field is separated by a space. For example, the string might contain Bob 45 Programmer" or any other name/age/title in the same format. Assume the name, age, and title have no spaces themselves. Write a program using only functions from cstring (not the class string) that can extract the name, age, and title into separate variables. Test your program with a variety of names, ages, and titles
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
