At 14:28 -0800 11/3/03, Russell Whitaker wrote:
adding 3 more lines of code should answer your question:
program test;
type Str255 = array[0..255] of char;
var a,b: Str255; begin
a := 'hello '; b := 'world';
a := a + b;
writeln( a );
end.
Amusingly, yes, that is originally what I had. But since it only printed "hello" when I ran it, I presumed it was not what I expected. Indeed, when I run the above program, it outputs:
zany:~/unix/c% ./testpas2 hello zany:~/unix/c%
In fact, it seems to output "hello" followed by 256-5 spaces, followed by a newline.
So I'm still confused... Peter.