
30.12.2008, 14:49
|
Прохожий
|
|
Регистрация: 30.12.2008
Сообщения: 3
Репутация: 10
|
|
Код:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
Button1: TButton;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i,n,c,d,e,f: integer;
s: string;
begin
with Memo1 do
begin
For n:=0 to lines.count-1 do
begin
s:=lines[n];
For i:=1 to length(s) do
If s[i]='+' then {здесь не знаю как написать цикл определения чисел}
lmikle: Пользуемся тегами!!!
Added: Просто дальше ничего кроме end'ов и нет =)
|