undeclared-identifier

Simple constructor with initializer list?

Below I've included my h file, and my problem is that the compiler is not liking my simple exception class's constructor's with initializer lists. It also is saying that string is undeclared identifier, even though I have #include <string> at the top of the h file. Do you see something I am doing wrong? For further explanation, this is o...

C++ 'ClassName Not Declared' Error

I have this cpp file. dsets.cpp: #ifndef DSETS_CPP #define DSET_CPP //Adds elements to the DisjointSet data structure. This function adds //x unconnected roots to the end of the array. void DisjointSets::addelements(int x){ } //Given an int this function finds the root associated with that node. int DisjointS...

error unidentfied identfier "exams" and i dont know why in c++

error C2065: 'exam1' : undeclared identifier // basic file operations #include <iostream> #include <fstream> using namespace std; void read_file_in_array(int exam[100][3]); double calculate_total(int exam1[], int exam2[], int exam3[]); // function that calcualates grades to see how many 90,80,70,60 //void display_totals(); int main() {...

Anybody know how to solve a "viewDidUnload undeclared" problem?

And also how to solve an "expected ';' before '{' token? code below (from xcode 3.2.3) - (void)viewDidUnload { self.cheatName = nil; self.description = nil; } Both errors are in the first line - (void)viewDidLoad { [super viewDidLoad]; [self.titleLabel setText:self.title]; [self.descriptionLabel setText:self.d...

getting 'undeclared identifier' error

Following the tutorial at http://www.codersource.net/mfc/mfc-tutorials/ctabctrl.aspx , I have declared the function ActivateTabDialogs() in my header file and called it inside another function in my class. The compiler gives error C2065: 'ActivateTabDialogs' : undeclared identifier, at the line ActivateTabDialogs(); inside the definition...