Header file problem

I have written this program->
//header.h
#include <iostream>
#ifndef HEADER_H
#define HEADER_H
struct structure
{
void add (int,int);
};
void structure::add (int a,int b)
{
int c;
c=a+b;
cout << "Here is c:" << c;
}
#endif

But when i compile it it says that "cout was not declared in this scope"
Plz help me out.
std::cout

You want to learn about namespaces.
http://www.cplusplus.com/doc/tutorial/namespaces/
Thank you actually i forgot to mention the namespace std.
Topic archived. No new replies allowed.