You are not logged in.

Search results

Search results 1-1 of 1.

Tuesday, September 27th 2016, 7:40am

Author: bozmin

private vector of a class

hi, i try to use a private vector to get a list of contact. however, it always tell me that it is a private member of a class. which cannot get used by an other class. I tried to use the "Friend" function. but it still doesn't work. here is all my code. ContactList.h Source code 1 #ifndef CONTACTLIST_H#define CONTACTLIST_H#include "Contact.h"using namespace std;class ContactList{ public: ContactList(Contact); private: string fname; string lname; string phone; string address; string city; string ...