Last active
December 23, 2015 14:19
-
-
Save freeonterminate/6648491 to your computer and use it in GitHub Desktop.
半沢直樹ヘルパー
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program 半沢直樹; | |
uses | |
System.SysUtils; | |
type | |
T半沢直樹 = record helper for Single | |
function 倍返し: Double; | |
end; | |
function T半沢直樹.倍返し: Double; | |
begin | |
Result := Self * 2; | |
end; | |
var | |
被ダメージ率: Single; | |
begin | |
被ダメージ率 := 1.0; | |
Writeln(被ダメージ率.倍返し); | |
Readln; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment