Category : cout

why i get error saying cout does not name a type i am coding an multilevel inheritance example but at line 24 it is showing me error that cout does not name a type #include<iostream> //multilevel inheritance using namespace std; class animal{ //base class public: void display(){ cout<<"This is a animal"<<endl; } }; class mammal:public ..

Read more