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
Ranked #107.40K
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; … |