My program must read a file and count how many times each letter comes up using vectors[27]. besides main there will be 2 required functions.
int char2int(char arg)
void display(const vector<int> & counters)
the file has numbers to but those should be read as a O. need help please help!
marthpro899
0
Newbie Poster
Recommended Answers
Jump to Post>My program must read a file and count how many times each letter comes up using vectors[27].
This seems like a faily simple problem, but why use vectors for this?
You don't even need a char2int function as conversion from char to int is automatic. Simply make an array …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.