Hi, I'm wondering how to remove a specific part of a string..
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str1 = "How,Are";
cout << str1;
//remove the comma, and everything behind the comma! so the output would only be 'Are'.
return 0;
}
Thank you, I am still learning, but also getting the hang of strings as I work this more!