Write a complete C++ program to read a text file words.cpp and do the?

Home » Programming & Design » Write a complete C++ program to read a text file words.cpp and do the?
Programming & Design No Comments

Other answer:

slver_love:
Write a complete C++ program to read a text file words.cpp and do the following:
– Copy the cpp file into a doubly linked list and name it as cppfile
– Traverse the linked list and create a doubly linked list with nodes of the following reserved words : and , bool, char, const, do, int, if, else, for, while, main, void, and float and name it as reserved
Each node consists of reserved_word and line_numbers where each word should be followed by the line numbers it exists in. The maximum number of lines in the text file is 30.

– Print each reserved word with the lines it occurs such as:
int 5,7,10, 22
void 7
float does not exist
etc

– Print the total occurrences of reserved words.

EddieJ:
Why are you simply cutting and pasting your assignment?

A "complete" C++ program would probably have
#include <iostream> as the first statement.

And then it would have
int main () {
return 0;
}

Do you *REALLY* need us to provide those parts to you? Did you spend even ONE second thinking about your question?

Chris P:
OK, just let me know how you'd like to pay for my time. My freelance rates start at €45 per hour or part thereof.
Duncan:
Thanks for sharing.

Do you have a question?

Adrian:
Ok, I did it. Thanks for the exercise…

LEAVE A COMMENT