Click here to Skip to main content
15,891,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: child dialog box? Pin
iayd6-Apr-07 22:24
iayd6-Apr-07 22:24 
GeneralRe: child dialog box? Pin
Hamid_RT7-Apr-07 0:13
Hamid_RT7-Apr-07 0:13 
AnswerRe: child dialog box? Pin
Ravi Bhavnani7-Apr-07 4:03
professionalRavi Bhavnani7-Apr-07 4:03 
GeneralRe: child dialog box? Pin
iayd8-Apr-07 21:17
iayd8-Apr-07 21:17 
QuestionRestrict Collapsing items in tree control Pin
Super Hornet6-Apr-07 10:46
Super Hornet6-Apr-07 10:46 
AnswerRe: Restrict Collapsing items in tree control Pin
Michael Dunn6-Apr-07 11:44
sitebuilderMichael Dunn6-Apr-07 11:44 
GeneralRe: Restrict Collapsing items in tree control Pin
Super Hornet7-Apr-07 0:47
Super Hornet7-Apr-07 0:47 
QuestionClass Member Declaration Problem Pin
all_in_flames6-Apr-07 10:18
professionalall_in_flames6-Apr-07 10:18 
Hi everyone, I am working on a project for a C++ course, and I am running into a compile error that I can't figure out how to fix. It seems to be telling me that I am using a class member that is an undeclared identifier. As far as I can tell, it has been declared.

Here is the class declaration:

class Student
{
public:
/* Constructors and Destructor */
Student();
virtual ~Student();
Student(std::string first, std::string last, int SNum);
/* Getters and Setters */
std::string getFirstName(void);
void setFirstName(std::string newName);
std::string getLastName(void);
void setLastName(std::string newName);
int getStudentNum(void);
void setStudentNum(int newNum);
std::vector<std::string> getGradeList(void);
void setGradeList(std::vector<std::string> &GList);

private:
std::string FirstName;
std::string LastName;
int StudentNum;
std::vector<std::string> GradeList;
};

And this is the code that is giving the problems at compile-time:

void setGradeList(std::vector<std::string> &GList)
{
GradeList = GList;
}

Build error:

students.cpp(62) : error C2065: 'GradeList' : undeclared identifier

So, this is driving me crazy, and any help would be greatly appreciated!
Thanks in advance!
AnswerRe: Class Member Declaration Problem Pin
David Crow6-Apr-07 10:45
David Crow6-Apr-07 10:45 
AnswerRe: Class Member Declaration Problem Pin
Michael Dunn6-Apr-07 11:46
sitebuilderMichael Dunn6-Apr-07 11:46 
JokeRe: Class Member Declaration Problem Pin
all_in_flames6-Apr-07 15:08
professionalall_in_flames6-Apr-07 15:08 
QuestionCreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
pnok6-Apr-07 6:37
pnok6-Apr-07 6:37 
AnswerRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
Mark Salsbery6-Apr-07 6:51
Mark Salsbery6-Apr-07 6:51 
GeneralRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
led mike6-Apr-07 7:15
led mike6-Apr-07 7:15 
GeneralRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
Mark Salsbery6-Apr-07 7:21
Mark Salsbery6-Apr-07 7:21 
GeneralRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
led mike6-Apr-07 7:47
led mike6-Apr-07 7:47 
AnswerRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
Chris Losinger6-Apr-07 9:33
professionalChris Losinger6-Apr-07 9:33 
QuestionDisplay Series of numbers in an edit box of MFC Pin
SamPrem6-Apr-07 6:05
SamPrem6-Apr-07 6:05 
AnswerRe: Display Series of numbers in an edit box of MFC Pin
houari_id6-Apr-07 6:08
houari_id6-Apr-07 6:08 
AnswerRe: Display Series of numbers in an edit box of MFC Pin
prasad_som6-Apr-07 6:42
prasad_som6-Apr-07 6:42 
AnswerRe: Display Series of numbers in an edit box of MFC Pin
David Crow6-Apr-07 6:44
David Crow6-Apr-07 6:44 
AnswerRe: Display Series of numbers in an edit box of MFC Pin
krmed7-Apr-07 9:14
krmed7-Apr-07 9:14 
QuestionHow to use IMediaSeeking in filter's pin? Pin
houari_id6-Apr-07 5:58
houari_id6-Apr-07 5:58 
AnswerRe: How to use IMediaSeeking in filter's pin? Pin
Mark Salsbery6-Apr-07 7:04
Mark Salsbery6-Apr-07 7:04 
GeneralRe: How to use IMediaSeeking in filter's pin? Pin
houari_id6-Apr-07 10:45
houari_id6-Apr-07 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.