D
Daz01
Hi all. Ive written a program and there are 2 errors that appear when I
try to compile the program. I dont know how to correct them. Any help
appreciated. Below are the errors
ERROR 1: `cout' undeclared (first use this function)
void marina::OutputList (void) {
// lists the entire list in the marina on the screen
boat * temp;
if (BoatName) {
for (temp=BoatName; temp; temp= temp->next) {
cout << "\n" << temp->BoatName;
cout << " " << temp->BoatLen;
cout << " " << temp->BoatDep;
cout << " " << temp->BoatOwn; }}
else {
//marina empty
cout << "\n\nMarina is empty"; } }
ERROR 2: expected init-declarator before "int" expected `,' or `;'
before "int"
int main()
{
Any help would be great. I can post the entire program on here if that
helps. Thanks
try to compile the program. I dont know how to correct them. Any help
appreciated. Below are the errors
ERROR 1: `cout' undeclared (first use this function)
void marina::OutputList (void) {
// lists the entire list in the marina on the screen
boat * temp;
if (BoatName) {
for (temp=BoatName; temp; temp= temp->next) {
cout << "\n" << temp->BoatName;
cout << " " << temp->BoatLen;
cout << " " << temp->BoatDep;
cout << " " << temp->BoatOwn; }}
else {
//marina empty
cout << "\n\nMarina is empty"; } }
ERROR 2: expected init-declarator before "int" expected `,' or `;'
before "int"
int main()
{
Any help would be great. I can post the entire program on here if that
helps. Thanks