2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
7
Task/Literals-String/Fortran/literals-string-1.f
Normal file
7
Task/Literals-String/Fortran/literals-string-1.f
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
DIMENSION ATWT(12)
|
||||
PRINT 1
|
||||
1 FORMAT (12HElement Name,F9.4)
|
||||
DO 10 I = 1,12
|
||||
READ 1,ATWT(I)
|
||||
10 PRINT 1,ATWT(I)
|
||||
END
|
||||
5
Task/Literals-String/Fortran/literals-string-2.f
Normal file
5
Task/Literals-String/Fortran/literals-string-2.f
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TEXT = 'That''s right!' !Only apostrophes as delimiters. Doubling required.
|
||||
TEXT = "That's right!" !Chose quotes, so that apostrophes may be used freely.
|
||||
TEXT = "He said ""That's right!""" !Give in, and use quotes for a "quoted string" source style.
|
||||
TEXT = 'He said "That''s right!"' !Though one may dabble in inconsistency.
|
||||
TEXT = 23HHe said "That's right!" !Some later compilers allowed Hollerith to escape from FORMAT.
|
||||
1
Task/Literals-String/Fortran/literals-string-3.f
Normal file
1
Task/Literals-String/Fortran/literals-string-3.f
Normal file
|
|
@ -0,0 +1 @@
|
|||
TEXT = "That's"//CHAR(10)//"right!" !For an ASCII linefeed (or newline) character.
|
||||
Loading…
Add table
Add a link
Reference in a new issue