I'm guessing your definition and your declaration aren't the same. The definition in the class seems like it has void as it's return type, but the one you posted returns a Paragraph reference.
words = new string[wordCount];
wordCount = para.wordCount;
Look closely. This is wrong.
(logically, not syntactically. This won't cause compiler errors, but it will cause broken code)
(your compiler errors are being caused by something else)
hmmmmmm, those 2 errors i gave you guys point the the first open curly brace in the code. i was thinking those 2 errors had to deal with that. i'm having a tough time understanding these concepts lately, just trying to get extra help. should i post all my code for you guys to look at? i have like 8 errors in total right now. would you guys be willing to analyze my code and kindly let me know my problem areas and a nudge in the right direction?
First advice, put your code inside code tags. It provides formatting to make the code easier to read, and it also provides line numbering to make it easier for us to point you to the lines that are problems.
Second, as firedraco said, your declaration of the assignment operator in your Paragraph class returns type void, where your definition returns type Paragraph. These need to match. I'd provide specific line numbers if they were available.
i changed the assignment operater in the class to not return type void. now i'm having problems with the extraction operator lines 187-201. i'm getting 5 errors that are all in that definition.
istream &operator >>(istream &inStream, const Paragraph ¶) // if 'para' is const
{
inStream >> para.wordCount; // then you can't modify it
You should be passing para as non-const reference here (ie: remove the const keyword). The objective of the >> operator is to change it, therefore you shouldn't pass it as const.
Also:
1 2
words = new string[wordCount];
wordCount = para.wordCount;
This is still broken. (how many strings are you allocating there?)