Write a function that will count the spaces in given sentence. Think about how your function header should look like. Write also a program to test your function
this is the assignment but im stuck at this, please help.
#include <iostream>
#include <string>
using namespace std;
void countSpaces(string &sentence);
void testSpaces(int &spaces);
int main()
{
string sentence;
cout << "Please Type Your Sentence" << endl;
cin >> sentence;
getline(cin, sentence);