I am having problems getting two file to match once they have been sorted. The 2 files have one record in common and that is an Id number(CustomerId and orderId).
CustomerId File contains:
...
Type: Posts; User: sketchit
I am having problems getting two file to match once they have been sorted. The 2 files have one record in common and that is an Id number(CustomerId and orderId).
CustomerId File contains:
...
I am reading in two files so that I can print a report.
The 2 files have one thing in common and that is an Id number
(CustomerId & orderId).
I thought a simple if() statement would do it but it...
Salem:
At the moment, yes they are but once I figure out the problem, I will change all of the "r's" to "rb" and the "w's" to "wb".
Thanks for all of your help but I think this project is...
Salem,
Thanks for the reply. It still is not working after making the changes. It reads in the first record of the first data file(cust.dat) and skips the rest of the files of cust.dat and it...
I have been working on this program, searched this board and others to try and find out how to rewrite the following code because it doesn't work correctly:
int initialization(struct...
I knew that. Slap self up side the head. I made those changes
and it still doesn't work.
Here it is again with the changes.
also here is the definition and the calling function:
I am trying to read two files( cust.dat and order.dat)
The first sscan will read the first record of the first data file, skips the rest of the files and then it reads all of the second records of...
The whole program is based on a company that sells carpet and installs it.
The first number 10 is the length
The second number 10 or 20 is the width
length and width are read from the data...
The hard coded data is data that will never be changed and it is used to do the calculations.
This program prints a report with the data from cust.dat which
contains the customer information and...
Here are the data files that you requested:
cust.dat
123456789 Thomas Hurton Hicks 5990 Meadow Crest Way Cumming GA 30040 (777)711-5002 [email protected]...
It's a lot of code:
Here is cust.dat:
//This one long record and this an example of what one record would look like
213416576 James Jimmy Willey 1234 Easy Street ...
Yes, I belive you understand what I am trying to accomplish.
So, I think that I would need a search to pull it off. I'm just not sure how to do it.
I'll try explaining it in a different way.
At the moment they are sorted by CustomerId and orderId (123456789 23156781 34567890) but if I am to sort the data by the CustomerFirstName or by total...
I am trying to print out a report sorted by CustomerfirstName, CustomerMiddleName, CustomerLastName
and another report sorted by TotalBill (two totally seperate reports).
I have figured out how...
I have two files and I would like to seach them and sort them in any order. My two data files are cust.dat and order.dat.
Cust.dat contains:
CustomerId
CustomerFirstName...
This program is suppose to read in two files and print 2 reports, sorted and unsorted.
All it does is print the headings for the sorted.
Here is the part that I suspect is wrong:
include...
This should take care of the error "orderRecs not declared"
[code]
struct ORDER_INFO orderRecs[LIMIT_SIZE];
[\code]
The below code to me looks right but I am getting errors, and warnings one of which says that orderRecs is not declared.
Any reason why?
Thanks
[code]
Smack self upside da head.
How stupid can one be!
That stupid one would be me.
I forgot to put and additional //file//in the sequence//.
Thanks alot for your help and patientance.
Please...
Salem:
I want this menu to call PA17.exe that contains PA17.rpt.
PA17.exe is in a different folder located in mydocument.
Sorry for the confusion and I hope that this clears up what I am trying...
Jv:
The defines make a lot of since so I did change it
and it still does not work.
Salem:
Maybe it's me but It's still not calling or bringing up the menu.
The rpt was a report that I was trying to bring up and then I thought I would just execute the program.
Is there anything...
I tried what you suggested and it got rid of the errors but
it doesn't run the program.
The #define made since.
How come it still want work. I am trying hard to understand this.
If this was...
I have searched this board without any luch and unfortunatly my C book does not give an example of calling another program from a menu.
Can someone steer me in the right direction?
I'm in the...
I have to read say 10 file and then print out a report delimited by
":". No matter what I do to it, I either get the first record to print
or the last one.
I tried as suggested putting the for...