VOOZH about

URL: https://qiita.com/e99h2121/items/0aba0ce4b5b4d1c27505

⇱ Delphiで湯婆婆する #Pascal - Qiita


👁 Image
14

Go to list of users who liked

3

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@e99h2121(Nobuko YAMADA)Team Coffeein👁 Image
株式会社Works Human Intelligence

Delphiで湯婆婆する

14
Posted at

元ネタ: Javaで湯婆婆を実装してみる

Delphi婆婆

👁 image.png

中身

yubaba.pas
procedure TForm1.Button1Click(Sender: TObject);
var
 len, pos :Integer;
 str, org :WideString;
begin
 org := Edit1.Text;
 len := Length(org);

 if MessageDlg('ふん。' + org +'というのかい。', mtConfirmation, [mbYes, mbNo], 0) = mrYes then
 begin
 pos := random(len);
 str := Copy(org, pos, 1);
 MessageDlg('贅沢な名だね。今日からお前の名前は ' + str +' だよ。', mtWarning, [mbYes], 0)
 end;

end;

👁 image.png

はしょり気味婆婆。

参考

14

Go to list of users who liked

3
0

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14

Go to list of users who liked

3