I suggest using std::string in place of the char* and std::vector in place of the array. Then you can use the extraction operator>> to extract the "words" from the file. Then you can either count the...
Type: Posts; User: jimblumberg
I suggest using std::string in place of the char* and std::vector in place of the array. Then you can use the extraction operator>> to extract the "words" from the file. Then you can either count the...
Is there a reason you are using C-strings instead of std::string? In my opinion the string class has member functions that make processing the string much easier than using the C-string functions...