The object of Your Affection - Stuck

Hi all, i got very stuck on the object of your affection project. This is what i have so far.

</
Under app.cpp:
#include

#include “profile.hpp”

int main() {

Profile sam (“Sam Drakkila”, 30, “New York”, “USA”, “he/him”);
std::cout << sam.view_profile();

}

/>
</
under profile.hpp

#include

class Profile{
private:
std::string name;
int age;
std::string city;
std::string country;
std::string pronouns;
std::vectorstd::string hobbies;
public:

Profile(std::string new_name, int new_age, std::string new_city, std::string new_country, std::string new_pronouns = “they/them”) ;

std::string view_profile(){

}
};

/>

And profile.cpp:
#include
#include “profile.hpp”

Profile::Profile(std::string new_name, int new_age, std::string new_city, std::string new_country, std::string new_pronouns)
: name(new_name), age(new_age), city(new_city), country(new_country), pronouns(new_pronouns) {

not sure what i have missing to move forward. Im around the step 6/7

1 Like

Any luck? I am stuck on Step 6. I am getting an error after compiling.