No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have a vector personInfo that contains class objects of person details vector<person> personInfo; I am trying to use std::find to search for a existing name in the vector. I overloaded my == operator. person.h class person { public: std::string name; friend bool operator==(const person &lhs, const person &rhs); }; … |
|
Re:
Write a program to evaluate the feed back of teacher accordingto following questions. 1. Behaviour of teaching in class. 2. Teaching style in class. 3. Questing Methaelogies they adopt. You to judge on the basic of following critenia. 1. Not Goog 2. Natural 3. Good |
|
Ihave a vector that contains monthyear Jan2013 Jan2013 Jan2013 Jan2014 Jan2014 Jan2014 Jan2014 Feb2014 Feb2014 Basically what I want to do is to search through the vector, for every same record, group them together like e.g total count for Jan2013 = 3; total count for Jan2014 = 4; total count … |
|
I have a vector which contains class objects of classObjects vector<classObjects> classObjectVector; I am trying to use std::find to search for a record in my vector, but I get an error message error Invalid operands to binary expression due to this line. if (std::find(classObjectVector.begin(), classObjectVector.end(), "aElement") != classObjectVector.end()) { //found … |