Guys i,m new in c++ so any body help to solve my problem i want to use file in this programme to store data so any one help me?
#include<iostream>
#include<string.h>
#include<conio.h>
using namespace std;
class acc{
int obj;
private:
int acc_no;
float balance;
int deposit;
int withdraw;
char name[18];
char ch[20];
public:
void input (){
cout<<"Enter your Account No:";
cin>>acc_no;
start:
cout<<"\nFor your Account security:\nPlease enter your name:";
cin>>(name);
if (stricmp(name,"umair")==0) {cout<<"\nok";}
else {cout<<"\nYou are entering the wrong name:";}
//goto start;
cout<<"\nWhat you want to do Deposit or Withdraw:";
cin>>ch;
if (stricmp(ch,"deposit")==0) {cout<<"\nYour previous amount is 5500:";
cout<<"\nHow much money you want to deposit:";
cin>>deposit;
cout<<"\nYour total amount is:"<<5500+deposit;}
if (stricmp(ch,"withdraw")==0) {cout<<"\nYour previous amount is 5500:";
cout<<"\nHow much money you want to withdraw:";
cin>>(withdraw);
cout<<"\nYour total amount is:"<<withdraw-5500;}
else {cout<<"\nYou entered the wrong word";}
}
};
int main (){
acc obj;
obj.input();