Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Word::Print(ostream& os)
- {
- int temp1 = 0;
- int temp2 = 0;
- temp1 = q.RemoveFromHead();
- if (temp1 != 0)
- {
- os << word << '\t' << '\t';
- os << temp1 << ' ';
- while (!q.IsEmpty())
- {
- temp2 = q.RemoveFromHead();
- if (temp1 != temp2)
- {
- if (temp2 != 0)
- {
- temp1 = temp2;
- os << temp1 << ' ';
- }
- }
- }
- os << endl;
- }
- }
Add Comment
Please, Sign In to add comment