class Complex
{
private:
int a,b;
public:
set_data(int,int);
show_data()
{
std:: cout<<"\na="<<a<<"\n"<<"b="<<b;
}
};
Complex::set_data(int x,int y)
{
a=x;b=y;
}
main()
{
Complex c1;
c1.set_data(3,4);
c1.show_data();
}
Error: error: 'cout' is not a member of 'std' I tired to slove this error but this is not slove
NotAceGG 0 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
Husoski 60 Newbie Poster
NotAceGG commented: Thx Your Answer Helpful me very much +0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.