0
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at

Organization

Object Pascalを6行でセグフォらせる

pythonを三行でセグフォらせる
pythonを2行でセグフォらせる
pythonを1行でセグフォらせる
C言語で16文字でセグフォらせる
Pythonを33文字でセグフォらせる
Rustを5行でセグフォらせる
C 言語で 5 文字でセグフォらせる
6行でJavaをセグフォらせる

を見て、たまたまそこにDelphiがあったので適当に書いたが
Delphi で最少のソースコードを書いてみるを見て反省して書き直し。

Project.dpr
program Project1;
uses Classes, Forms; {$R *.res}
var list: TStringList;
begin Application.Initialize; list.Delete(-1); Application.Run;
end.

これでいいみたい。
image.png

以下初回作

Unit1.pas
procedure TForm1.FormCreate(Sender: TObject);
var
 data:array[0..0] of string; i:integer;
begin
  for i:=0 to 1 do begin showmessage(data[i]); end;
end;

image.png

Delphi 言語 / Object Pascal について

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
0
Help us understand the problem. What are the problem?