By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,650 Members | 812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,650 IT Pros & Developers. It's quick & easy.

it is showing error : IDENTIFIER update_balance cannot have typr qualifier

P: 1
void initial::update_balance(int t_accno,char t_name[30],char t_address[30],float t_balance)
{
int recno;
recno=recordno(t_accno);
fstream file;
file.open("INITIAL.dat",ios::out|ios::ate);
strcpy(name,t_name);
strcpy(address,t_address);
balance=t_balance;
int location;
location=(recno-1)*sizeof(initial);//Find the location in file
file.seekp(location); //Searches the insertion position in data file
//Updates the balance amount in INITIAL.dat data file
file.write((char *)this,sizeof(initial));
file.close();
}
Oct 11 '15 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
I got this to compile just fine.
Oct 11 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.