Binary input output program

in #programming7 years ago (edited)

Program

A program is set of instruction given by user to computer to perform a specific task.
Supercomputer program, in depth intend or else process in lieu of solving a riddle by means of a computer; supplementary specifically, an unambiguous, well thought-out string of computational advice indispensable near attain such a solution.
Intended for example, Microsoft remark is a declaration laptop series with the aim of allows users just before make afterward inscribe credentials furthermore the browser you are by toward survey this call is a program. not including programs, a workstation would even now employment along with the in use system, although you would not be there adept on the road to make anything.

Program Body

#include< iostream >
#include < string >
#include< fstream >
using namespace std;
class real{
private:
int accountname,balance;
string name;
public:
void get();
void baco();
};
void real::get(){
cout<<"Enter your account name here"<<endl;
cin>>accountname;
cout<<"Enter your account balance here"<<endl;
cin>>balance;
cout<<"Enter your own name now"<<endl;
cin>>name;
}
void real::baco(){
cout<<"your account name is "<<accountname<<" your balance is "<<balance<<" your original name is "<<name<<endl;
}
int main (){
real wolf;
wolf.get();
fstream nef("bank",ios::out|ios::trunc);
nef.write((char*)&wolf,sizeof(wolf));
nef.close();
}

source

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63811.50
ETH 2617.28
USDT 1.00
SBD 2.77