Need the program to read txt file with bunch of characters After reading it should show most commonly used character and least common #include #include #include #include using namespace std; const int SIZE = 50; char line[SIZE]; void mostFrequent(char *, int); int main() { ifstream inputFile; //Open the file inputFile.open("c:/letter_count.txt"); if (inputFile.fail()) { cout max) { max = array[i]; index = i; } } cout (index); }
cp21 · Sep 24, 2015 7:31 PM · 28,268 views
There is one opening for c/c++ developer, is there anyone with solid experience on it? I can refer to a company. send me email at findmeitjob@gmail.com
hireme · Oct 5, 2015 8:00 PM
This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.
Start a New Discussion