C++/logical problem in c++
when i am running this code it is not taking input of year.why is this happening and how can i solve this problem?
cout<<"\n enter name";
cout<<"\n enter roll no";
cout<<"\n enter branch";
cout<<"\n enter year";
There is no such header in standard C++. use
using namespace std ;
> void main()
main must return an int. see http://www.research.att.com/~bs/bs_faq2.html#void-main
> when i am running this code it is not taking input of year.why is this happening and how can i solve this problem?
There is some crud left in the input buffer. Make sure that you no not enter more than 39 characters for name, 14 characters for rno and one character for brch.