Question: c++ 3) Comma Count Read an entire line from the user with the command: getline (cin, somestring) Then display how many commas are in the

c++
3) Comma Count Read an entire line from the user with the command: getline (cin, somestring) Then display how many commas are in the the input string. Workout 1) Split Extend the previous program to put cach part between commas (including the first and last thing, which only have one comma) into a separate array index in the same order they are input. For example if the user input: my, cat, ate,my, homework Then the code (if varray is your array variable): string varray(VALUES]; // make your code here for( int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
