Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~680 People Reached
Favorite Tags
Member Avatar for hasan101002
Member Avatar for hasan101002
Member Avatar for hasan101002

why the code is not running? #include<iostream> #include<string.h> using namespace std; class person { char name[20]; float age; public: person(char *s,float a) { strcpy(name,s); age=a; } person & person::greater(person &x) { if(x.age>=age) return x; else return *this; } void display(void) { cout<<"Name:"<<name<<"\n"<<"Age:"<<age<<"\n"; } int main() { person P1("John",37.50),P2("Ahmed",29.0),P3("Hebber",40.25); person P('\0',o); …

Member Avatar for hasan101002
0
388
Member Avatar for hasan101002
Member Avatar for hasan101002

hlw everyone. i am new to this. and i am a student of CSE ,i want to learn more for which i have came here. i hope through discussion i will get to know something about the geek world,because i want to be a part of it.

0
34