Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
27
Task/Reflection-Get-source/Ring/reflection-get-source.ring
Normal file
27
Task/Reflection-Get-source/Ring/reflection-get-source.ring
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Project : Reflection/Get source
|
||||
|
||||
fp = fopen("C:\Ring\applications\fifteenpuzzle\CalmoSoftFifteenPuzzleGame.ring","r")
|
||||
r = ""
|
||||
str = ""
|
||||
flag = 0
|
||||
numline = 0
|
||||
see "give the function: "
|
||||
give funct
|
||||
funct = "func " + funct
|
||||
while isstring(r)
|
||||
r = fgetc(fp)
|
||||
if r = char(10)
|
||||
flag = 1
|
||||
numline = numline + 1
|
||||
else
|
||||
flag = 0
|
||||
str = str + r
|
||||
ok
|
||||
if flag = 1
|
||||
if left(str,len(funct)) = funct
|
||||
see '"' + funct + '"' +" is in the line: " + numline + nl
|
||||
ok
|
||||
str = ""
|
||||
ok
|
||||
end
|
||||
fclose(fp)
|
||||
Loading…
Add table
Add a link
Reference in a new issue