Dear Sir,
It is a simple example using a string.
program dowhile;
{$APPTYPE CONSOLE}
uses SysUtils, OurCrt;
var
my_words : string;
begin
my_words := '';
writeln('Enter some words (type "stop" to finish):');
readln(my_words);
while (my_words <> 'stop') do
begin
clrscr;
Writeln('You typed:');
writeln(my_words);
writeln;
writeln('Enter some words (type "stop" to finish):');
readln(my_words);
end;
writeln;
writeln('This program has finished now');
end
But it does not work. Could you tell me what's wrong of it?