Search:

Type: Posts; User: sketchit

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,655

    How do I match 2 files to print data.

    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:
    ...
  2. Replies
    1
    Views
    1,150

    How do you match 2 files?

    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...
  3. Replies
    4
    Views
    1,202

    RE: Are these files really text files

    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...
  4. Replies
    4
    Views
    1,202

    That Made Since but it still does not work.

    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...
  5. Replies
    4
    Views
    1,202

    How would you rewrite this???????

    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...
  6. Replies
    3
    Views
    987

    It still doesn't work

    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:
  7. Replies
    3
    Views
    987

    What is wrong with these sscans?

    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...
  8. Replies
    30
    Views
    5,624

    Also tell me about some of these calcuations

    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...
  9. Replies
    30
    Views
    5,624

    Re: I noticed a lot of hardcode.

    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...
  10. Replies
    30
    Views
    5,624

    Re: Need more data files

    Here are the data files that you requested:




    cust.dat

    123456789 Thomas Hurton Hicks 5990 Meadow Crest Way Cumming GA 30040 (777)711-5002 heatit@tells.net213416576...
  11. Replies
    30
    Views
    5,624

    Re: I need to see more.

    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 ...
  12. Replies
    30
    Views
    5,624

    Re: based on more than one criteria?

    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.
  13. Replies
    30
    Views
    5,624

    Re: They are sorted?

    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...
  14. Replies
    30
    Views
    5,624

    re: comparing strings

    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...
  15. Replies
    30
    Views
    5,624

    How do you search & sort an array?

    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...
  16. Replies
    1
    Views
    1,227

    I don't understand!

    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...
  17. Thread: Puzzled

    by sketchit
    Replies
    3
    Views
    1,130

    I have declared it

    This should take care of the error "orderRecs not declared"



    [code]

    struct ORDER_INFO orderRecs[LIMIT_SIZE];

    [\code]
  18. Thread: Puzzled

    by sketchit
    Replies
    3
    Views
    1,130

    Puzzled

    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]
  19. Replies
    7
    Views
    938

    Salem, It works!!!!!!!!!!!!!!

    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...
  20. Replies
    7
    Views
    938

    RE:pa17.exe

    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...
  21. Replies
    7
    Views
    938

    Thanks JV but it still not working

    Jv:

    The defines make a lot of since so I did change it
    and it still does not work.
  22. Replies
    7
    Views
    938

    Still doesn't 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...
  23. Replies
    7
    Views
    938

    No errors but stiil doesn't work

    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...
  24. Replies
    1
    Views
    1,015

    How do you call a program from a menu?

    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...
  25. Thread: Loops?

    by sketchit
    Replies
    0
    Views
    783

    Loops?

    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...
Results 1 to 25 of 36
Page 1 of 2 1 2