im writing a program to display a tweet. it has a subject and message. i get a code error:
ec3.cpp: In member function ‘Tweet Twitter::gettweet(std::string)’:
ec3.cpp:60:15: error: ‘tweet’ was not declared in this scope
return tweet();
im not sure what i need to do to fix this error
Several things,
At line 57, tweet() is spelled with a lowercase 't'.
If it's changed to uppercase Tweet() that might help, but then you also need to supply the parameters (as in line 64).
Also, line 57 seems to be misplaced, it should be moved outside the for loop.