#include <fstream> #include <iostream> #include <iomanip> using namespace std; int main () { ifstream FileIn; ofstream Fileout; int count=0; char inchar; FileIn.open("E:\\CFiles\\QUOTES.txt"); Fileout.open("E:\\Answers.txt"); while (FileIn) { count=0; FileIn.get(inchar); while(inchar>='A'&&inchar<='Z'||inchar>='a'&&inchar<='z') {count++; FileIn.get(inchar); } if (count==3) count; //What goes here????????????????? else if (count==4) count; //And here???????????????? else if (count==5) count; //And here??????????? else if (count==6) count; cout<<"3 letter words "<<??????<<endl; cout<<"4 letter words "<<??????<<endl; } FileIn.close(); FileIn.clear (); } |
while( (inchar >= 'A' && inchar <= 'Z' ) || (inchar >= 'a' && inchar <= 'z') )