Professional Documents
Culture Documents
Unit Unit1
Unit Unit1
Unit Unit1
interface
uses
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Button1: TButton;
Button2: TButton;
Label3: TLabel;
Label4: TLabel;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
var
c:char;
w:string;
posi:integer;
begin
w:= edit1.text;
c:= edit2.Text[1];
posi:=pos(c,w);
label3.Caption:= inttostr(posi);
end;
var
sSentence:string;
i,iCount:integer;
valid_cha:Set of Char;
location: integer;
begin
st:=edit1.Text;
icount:=0;
valid_cha:=['A','E','I','O','U','a','e','i','o','u'];
begin
end;
end;
end.