I cannot view the images as that site is blocked for malware. Is the code and error message really so long to copy and paste into [code] and [output] tags?
#include <string>
class advertisement{
public:
int adArraySize;
int currentAd;
string adArray[1000]; //Set size to appropriate size...
int findAdArraySize();
void readAndStoreAd();
string getAd();
};
advertisement.h:10: error: 'string' does not name a type
advertisement.h:14: error: 'string' does not name a type
advertisement.cpp:52: error: no 'std::string advertisement::getAd()' member function declared in class 'advertisement'
Another (in the middle) solution between the 2 proposed by @L B is: using std::string;
sometimes even better since you can use string where ever you would put std::string and not include the whole std namespace at the same time.