Ok, still thats easy to fix, just move the do up...
int main()
{
string strInput;
do
{
cout << "\nPlease enter a gender specific sentence\n";
Type: Posts; User: WizardRahl
Ok, still thats easy to fix, just move the do up...
int main()
{
string strInput;
do
{
cout << "\nPlease enter a gender specific sentence\n";
We also weren't assigned a book for the class, so it's difficult to have to go to outside resources to find examples ofeverything. =(
Ok, got an update here... still got a few errors.
#include <iostream>
#include <string>
using namespace std;
int main()
{
Here's what I've got so far... Doesn't really work.
I have the user input as strInput and a function that will need to loop until the user input = "I'm done".
I also have a function at the...
Thanks,
Should I continue to post here or pm you?
Thats the problem... I'm unsure of what code/functions to use to scan the input to look for pronouns. Is it something like, string::find(string str) ??
I'm just not sure how to begin the...
Yeah it would be easy to keep adding different pronouns such as "they" and "it" to be replaced by something else. I just need a starting point really on how to scan the input and make it "pickup"...
That's true for practical use. When it's graded, I assume that the instructor will input a gender specific sentence first to check to see if the replace is correctly implemented. We get bonus...
This is a classroom problem, and I'd also like to try it out on a couple of word files to see its practical use. I'm pretty sure that I could figure out how to read in from file if I can get the...
Hello,
I'm looking to write a program that will take a user input (a sentence) and make it less sexist.
For ex., User input is -> He who laughs last, laughs best.
Program output -> She or he...