Cout Does not Name a Type
Folks, why I am getting this error even I am using "iostream and using namespace std"
Here is My Code
class DateType: public PatientType{
cout<<"\nEnter Patient ID\n";
cin>>Patient_ID;
cout<<"\nEnter Patient's Age\n";
cin>>Age;
cout<<"\nEnter Patient's Date of Birth";
cin>>DOB;
};
Class DateType is Derived from class PatientType and class PatientType is Dervied from Class PersonType.
cout is working everywhere but in class DateType.