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
    1. Advertising

  2. JasBascom

    David Harmon Guest

    On 15 Feb 2004 20:44:48 GMT in comp.lang.c++,
    (JasBascom) was alleged to have written:
    >the following short program is suppose to take a line


    You apparently forgot the "following" short program

    >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.


    As a bare minimum, put
    perror("");
    after the failing file create. Found in <stdio.h>
    David Harmon, Feb 15, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Berg
    Replies:
    1
    Views:
    516
    Sudsy
    Nov 23, 2003
  2. RSB

    CRC check logic/program

    RSB, Sep 29, 2004, in forum: Java
    Replies:
    2
    Views:
    2,588
    Michael Borgwardt
    Sep 30, 2004
  3. iskeletor
    Replies:
    3
    Views:
    363
    Barry Schwarz
    Dec 26, 2006
  4. spike
    Replies:
    8
    Views:
    1,464
    Steve Holden
    Feb 9, 2010
  5. G G
    Replies:
    20
    Views:
    413
    Tim Rentsch
    Sep 23, 2013
Loading...

Share This Page