Lazarus 如何读取同一行上的多个条目?

Lazarus 如何读取同一行上的多个条目?,lazarus,Lazarus,我想在同一行上输入两个或多个条目。 如何让程序读取2个或更多条目 begin Write(' Input student namer and his/her score for the math test '); readln(names[i],mark[i]); Writeln; end; 不能对字符串参数使用ReadLn。阅读整行并解析它:ReadLnline;sscanfline,'%s%d',[@name,@score];行,名称:字符串;分数:整数;sscanf函

我想在同一行上输入两个或多个条目。 如何让程序读取2个或更多条目

begin
   Write(' Input student namer and his/her score for the math test ');
   readln(names[i],mark[i]);
   Writeln;
end; 

不能对字符串参数使用ReadLn。阅读整行并解析它:ReadLnline;sscanfline,'%s%d',[@name,@score];行,名称:字符串;分数:整数;sscanf函数来自SysUtils unitOr或将数值放在第一位。谢谢。我从来没有想到过!。