/************************************************** Write a program that reads a list of banned words from a file, stores them in an array, and then simply reads words from the user and returns "banned" or "not banned" until the word "end" is encountered. The file starts with a number, which is the number of banned words, and then the words themselves are listed. **************************************************/ #include #include #include using namespace std; int main() { ifstream fin("banned.txt"); // Read n and create array int n; fin >> n; string *banned = new string[n]; // Load words into array for (int i=0; i> banned[i]; } // Get word from user, check if banned // NOTE -- this only does one word from user -- need another loop to do more string word; cin >> word; bool wasBanned = false; for (int j=0; j