i wabt to know my mistakes

whats wrong with my cin nd cout lines

#include <iostream>
void main ()
int a,b,c,d,e;
cout<<"Enter The Students Subjects \n Enter the First Subject";
cout<<"\n Enter The Second Subject";
cout<<"\n Enter The Third Subject";
cout<<"\n Enter The Fourth Subject";
cout<<"\n The Mean Grade"<<e;
You forgot to put std:: in front of cout and cin.
1. Either use std::cout and std::cin or type using namespace std just under #include .
2. Change the book / tutorial you use to something modern. The presented code uses obsolete standards, so similar mistakes will pile up. I recommend http://www.learncpp.com/
thx for you two
Topic archived. No new replies allowed.