Need Help Quick Please...
Author |
Message |
riptake13
|
Posted: 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
Description: |
The text file for the country |
|
Download |
Filename: |
country tim.txt |
Filesize: |
408 Bytes |
Downloaded: |
87 Time(s) |
Description: |
|
Download |
Filename: |
medals tim.txt |
Filesize: |
250 Bytes |
Downloaded: |
61 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
|
|