Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 datafile trouble
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Michael




PostPosted: Sat Nov 18, 2006 10:35 pm   Post subject: datafile trouble

hey people

i got this thing..

i need to input names last names and ages into a datafile, be able to display the datafile , ascending order of ages and descending order of ages


my problem(s)

1. when you input the data and view it, its fine (ages are unsorted). but, if you view it, then view in descending order, then go back to regular view, the data is still in descending order

2. when you input the data and view it , its fine . but, if you view your data and then view ascending order .. its still fine.. shows ascending order but then when you try to view the regular unsorted datafile .. it shows all 0s


files are attached
age inputs can only be from 13 to 20



data7.dat
 Description:
datafile

Download
 Filename:  data7.dat
 Filesize:  126 Bytes
 Downloaded:  61 Time(s)


temp.dat
 Description:
temp datafile

Download
 Filename:  temp.dat
 Filesize:  126 Bytes
 Downloaded:  50 Time(s)


WriteToFile2.t
 Description:
Program

Download
 Filename:  WriteToFile2.t
 Filesize:  6.86 KB
 Downloaded:  48 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Michael




PostPosted: Sun Nov 19, 2006 2:23 pm   Post subject: (No subject)

sorry people
problem solved

forgot include some procedures


Embarassed
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: