Question: #include #include #include using namespace std; const int SIZE { 1 0 } ; struct SentenceData { int numSwapped [ SIZE ] { } ;
#include
#include
#include
using namespace std;
const int SIZE;
struct SentenceData
int numSwappedSIZE;
string sentenceSIZE;
int total;
vector rvColors;
vector rvPhrases;
ofstream output;
string resultsOriginal;
string resultSwapped;
string colorFile "Colors.txt;
string sentenceFile "Sentences.txt;
string swapPhrasesFile "SwapPhrases.txt;
string outputFile "Out.txt;
;
void WriteHeader;
void AskForInputFilenamesstring& colorFile, string& sentenceFile string& phraseFile;
string AskForOutputFilename;
bool ReadColorsvector& rvColors, string filename;
bool ReadPhrasesvector& rvPhrase, string filename;
bool ReadSentencesstring sentences string filename, SentenceData pData;
bool WriteOriginalsSentenceData& data, int totalSentencesModified, string filename;
bool WriteResultsSentenceData& data, string filename;
int SwapColorsSentenceData& data;
void SayGoodbye;
#endif
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
