Question: C++ Programinng problem Programming Task 1 Make a new a new directory called splitter. We want to add three new files to the project: splitter-main.cpp

C++ Programinng problem

C++ Programinng problem Programming Task 1 Make a new a new directorycalled splitter. We want to add three new files to the project:splitter-main.cpp splitter-functions.cpp splitter- functions.h Make a new file (gedit: weird icon nextto open) then save as splitter- main.cpp Now make the splitter-functions.cpp andthe splitter-functions.h file. You should have three file tabs at the topnow Function split The split function should take in a string and

Programming Task 1 Make a new a new directory called splitter. We want to add three new files to the project: splitter-main.cpp splitter-functions.cpp splitter- functions.h Make a new file (gedit: weird icon next to open) then save as splitter- main.cpp Now make the splitter-functions.cpp and the splitter-functions.h file. You should have three file tabs at the top now Function split The split function should take in a string and return a vector of the individual elements in the string that are separated by the separator character (default ' space). Thus "hello mom and dad" -) { "hello", "mom", "and", "dad"} . Open splitter-functions.h and store the function declaration of split there. The declaration should be: vector split (const string &s, * As discussed, default parameter values go in the header file only The default does . This header file should wrap all declarations using the #1 fndef, # define, char separator=' ' ); not occur in the definition if it occurred in the declaration. # endif as discussed above. Make up your own variable name

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!