C++

Archived from the original Sajha.com — preserved as posted, replies can no longer be added here.
Start a New Discussion
Archived Post

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

21 Replies · Showing 21 - 21
Page 2 of 2

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

You might be interested in...

Recent Classifieds View all
Upcoming Events View all
Service Providers View all