program logic

Discussion in 'C++' started by JasBascom, Feb 15, 2004.

  1. JasBascom

    JasBascom Guest

    the following short program is suppose to take a line
    c02345edbundie 5californiaSt,WestVirginia
    balancetransfer0.00000creditlimit 100
    I12345sarahbundie 5californiaSt,WestVirginia
    balancetransfer0.00000creditlimit 100

    it is suppose to compare the first digit in each line, in this case 0 and 1 and
    output them in accending order to the sort_data file.
    The problem I have is that the sort data file for some reason can not be
    created, could you please tell look over the program tell me if it does what it
    is suppose to, and how I can force the program to create the file.
    JasBascom, Feb 15, 2004
    1. Advertisements

  2. JasBascom

    David Harmon Guest

    You apparently forgot the "following" short program
    As a bare minimum, put
    after the failing file create. Found in <stdio.h>
    David Harmon, Feb 15, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.