Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <map>
- using namespace std;
- istream findParagraph(istream& is, string& word) {
- cout << "<br>" << endl;
- }
- int main(int argc, char* argv[]) {
- argv[1] = "The Republic, by Plato.txt";
- ifstream infile(argv[1]);
- char ch = 0;
- ofstream out("title.html");
- out << "<html>" << endl
- << "<head>" << endl
- << "<title>" << argv[1] << "</title>" << endl
- << "</head>" << endl
- << "<body>" << endl;
- typedef map<string, unsigned> dictionary_type;
- dictionary_type words;
- string word;
- while (findParagraph(infile, word))
- ++words[word];
- out << "</body>" << endl << "</html>";
- } //end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement