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

Username:   Password: 
 RegisterRegister   
 Need Help Quick Please...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
riptake13




PostPosted: Sat Nov 07, 2015 11:53 pm   Post subject: Need Help Quick Please...

What is it you are trying to achieve?
Proper formatting, the number of medals should line up one behind the other in a row but instead it goes underneath the last one, this is due really soon so any help will be appreciated


What is the problem you are having?
Wont format properly

Describe what you have tried to solve this problem
Could use locate but not allowed


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)


Turing:

var country: array 1..31 of string
var medals: array 1..31, 1..3 of int
var stream: int
var e:= 1

open: stream,"country tim.txt", get

for x: 1..31

get: stream, country(x):*
end for
close:stream

open: stream, "medals tim.txt", get

for a: 1..31
for b: 1..3
exit when eof(stream)
get: stream, medals(a,b)
end for
end for
close: stream


for c: 1..10
for d:1..3
put country(c):10..
put medals(c,d)
end for
end for



Please specify what version of Turing you are using
Latest one



country tim.txt
 Description:
The text file for the country

Download
 Filename:  country tim.txt
 Filesize:  408 Bytes
 Downloaded:  83 Time(s)


medals tim.txt
 Description:
The text file for medals

Download
 Filename:  medals tim.txt
 Filesize:  250 Bytes
 Downloaded:  57 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
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  [ 1 Posts ]
Jump to:   


Style:  
Search: