The following code does not run.
What is the problem?
It returns message () expected.
Code:# include<iostream.h> # include<conio.h> # include<stdio.h> class person { private: int age; char name[20]; public: void getdata(); void putdata(); }; void person::getdata() { cout<<"Enter the name"; cin>>name; cout<<"Enter age"; cin>>age; } void person:: putdata() { cout<<"\nName :"<<name<<"\n"; cout<<"Age :"<<age; } int main() { person a; void pline(char ch '#',int i=40); clrscr(); a.getdata(); pline(); a.putdata(); return(0); } void pline(char ch,int i) { for(i=0;i<=40;i++) printf("%c",ch); }



LinkBack URL
About LinkBacks




CornedBee