Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > program logic

Reply
Thread Tools

program logic

 
 
JasBascom
Guest
Posts: n/a
 
      02-15-2004
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.

 
Reply With Quote
 
 
 
 
David Harmon
Guest
Posts: n/a
 
      02-15-2004
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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python Logic Map/Logic Flow Chart. (Example Provided) spike Python 8 02-09-2010 12:31 PM
Asynchronous Logic Gates and Analog Logic Gates Jyoti Ballabh Software 3 11-26-2009 06:48 PM
does anyone see what is wrong with my .gif download logic? no matter what image url i try it downloads a junk file that can't be opened in any paint program. dr ASP .Net 1 02-19-2007 06:47 AM
CRC check logic/program RSB Java 2 09-30-2004 11:53 AM
java.nio as opposed to java.net - basic difference in program logic? Chris Berg Java 1 11-23-2003 11:09 PM



Advertisments