it is a simple program that is demonstrating class and object.but it is giving an error like too many types in declaration and function should return a value....
pls find solution and suggest me what should i do...
pls find solution and suggest me what should i do...
Code:
#include<iostream.h> #include<conio.h> class ayes { public: void foo() { int a,b; cout<<"Enter two nos:"; cin>>a>>b; cout<<a+b; } }
Comment