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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -