Question: C++ homework exercise: Remove leading and trailing blank spaces from a map. Write a C++ function prototyped as void blanksOut(map & data); Function blanksOut takes
C++ homework exercise:
Remove leading and trailing blank spaces from a map.
Write a C++ function prototyped as
void blanksOut(map
Function blanksOut takes a map
map
m[33] = x y ;
m[40] = aaa;
m[51] = zzz;
blanksOut(m);
cout << m[33] << endl; //prints x y
cout << m[40] << endl; //prints aaa
cout << m[51] << endl; //prints zzz
How should this be done?
Thank you for any help.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
