I am trying to create a lexicon using an input file in C++ -
i have file.txt want create function in c++ can read words in file, , print each word , how many times occur file2.txt
i doing research know can use parser , writer, , map class, please?
bool parser::hasmoretokens() { if(source.peek()!=null){ return true; } else{ return false; } }
is home work? online std::map, std:string, std::ifstream , std::ofstream.
Comments
Post a Comment