473,320 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

it is showing error : IDENTIFIER update_balance cannot have typr qualifier

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
1 1257
weaknessforcats
9,208 Expert Mod 8TB
I got this to compile just fine.
Oct 11 '15 #2

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

Similar topics

0
by: MWK | last post by:
Hi All, I don't understand why I get "error c2061: syntax error : identifier" in VS2003. I thought it's fixed in .Net 2003: __hook(&TCP_Client::LineReceived, client, HandlerLineReceived); ...
6
by: Pixel.to.life | last post by:
So I have this perfectly fine and running app, that uses managed C++ forms. Problem#1: I pass a Bitmap reference to a class, hoping to modify it in one of the class's methods, so it reflects...
6
by: muby | last post by:
Hi everybody :) I'm modifying a C++ code in VC++ 2005 my code snippet void BandwidthAllocationScheduler::insert( Message* msg, BOOL* QueueIsFull,
3
by: abhijit mudugan | last post by:
i'm getting an error 'identifier display cannot have type qualifier' near the bold portion. what's wrong??? #include<iostream.h> #include<conio.h> #include<stdio.h> #include<stdlib.h> class...
1
by: KasimDelovan | last post by:
I have got this error: I get the error: Identifier 'deposit' cannot have a type qualifier I have defined this class class BankAccount { private: double balance; ...
1
by: prathamnitika | last post by:
int food :: last_code(void) { fstream file; file.open("FOOD.DAT", ios::in); file.seekg(0, ios::beg); int t=0; while(file.read((char *) this, sizeof(food))) t=itemcode; ...
1
by: Akshay143 | last post by:
#include <stdio.h> #include <conio.h> #include <string.h> #include <process.h> #include <ctype.h> #include <fstream.h> class customer {
1
by: mina444 | last post by:
1)IDENTIFIER 'GETCOUNT' CANNOT HAVE A TYPE QUALIFIER 2) AT THE END OF PROGRAM, IT DISPLAYS "COMPOUND STATEMENT MISSING }" AND "DECLARATION MISSING ;" how can I solve it? #include<stdio.h>...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.