Three problems for c++
#include "Person.h" #include <sstream> using namespace std; Person::Person() {weight=height=age=gender=0;} Person::Person(int a, double w, double h, int g) : age(a), weight(w), height(h), gender(g) { } ostream& operator <<(ostream& oS, const Person& p) { oS << "\nAge: " << p.age << "\tWeight:\t" << p.weight << "\tHeight:\t" << p.height << "\tBMI:\t" << p.bmi << "\tGender:\t" << (p.gender==1?"M":"F"); return oS; }