View Single Post
Old Apr 26th, 2005, 5:46 PM   #12
brokenhope
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 126
Rep Power: 4 brokenhope is on a distinguished road
Complier messes up... it doesnt recognize string

`::string' undeclared (first use here)
`note' undeclared (first use this function)

void addNote() {
cout << "Enter the text for the note: ";
std::string note;
cin.ignore();
gets ( note );
cout << note;
}

Is that what you meant? I also tried string without std:: (because I have using namespace std but I got the same errors, is there a header file I need or something?
brokenhope is offline   Reply With Quote