Hi I need help in programming with strings....I started a code, but I'm not sure how to do it....Please help
- read in one string which consists of two words Ex. "Computer Science"
- call a function makewords() which receives three parameters: a string which holds the original phrase and two strings to hold the two words. The function will break the string stored in the first parameter (the original sentence) into two words and then store it in one of the parameters.
- Your function, makewords(), should then check if the 2 new strings are equal to each other, and print the appropriate message saying whether or not they are equal.
- print out the two words and their sizes.
- call the function matchexact() passing the two strings. matchexact() will determine how many times the corresponding positions in the two strings hold exactly the same characters. The function will print this value.
- The main program will then call a function jointhem() which receives the two strings. The function will join the two strings together and print the new string. Ex. if string1 is “bath” and string2 is “water” than the new string is “bathwater”
#include<iostream>
#include<string>
using namespace std;
int main()
{
string [50];
string a ("Computer Science");
cout<<"Computer Science";
makewords( int a, int b, int c);
string[50];