I am writing a program that takes input from a user and the program corrects the whitespace and capitalization errors. I have written the part to get the input from the user and stores it in an string with a getline function. My problem is I am tring to figure out a way to check and remove whitespace if anyone can help
thanks
this is how i am getting the input in.
thanks
Code:
#include <string>
#include <iostream>
using namespace std;
int main() {
cout << "enter sentence and hit enter";
string s1;
getline(cin,s1);
Comment