Hey guys,
So I need to write a program that will prompt the user to enter the name of a .txt file, then count the occurence of each letter. It should print out the results on the screen and ask the user to enter a .txt file name to store it. It should use a vector of length 26 to count the occurance of the letters, and treat upper and lower case as the same letter.
I really don't understand vectors so I have no idea what to do after this:
#include <iostream>
#include <string>
#include <cassert>
#include <vector>
#include <fstream>
using namespace std;
int main()
{
cout<<"Please enter the name of the .txt file you wish to open: ";
string file;
cin >> file;
ifstream fin(file.data());
assert(fin.is_open());
}