Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~87 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for tcsarindam

Using different objects for input and output the above code is not working. Pls give suggestion ASAP. [code]#include<iostream> #include<fstream> #include<iomanip> using namespace std; class sample { int num; char name[20]; public: void read() { cout<<"\n enter name"; gets(name); cout<<"enter the number"; cin>>num; } void write() { cout<<"\n The name is"<<name<<endl; …

Member Avatar for Salem
-1
87