我想在delphi的控制台写一些小的程序来学习pascal语言。
但是我写好的程序后运行时总是一闪而过,看不到程序运行的结果,是不是要加入什么函数,才能够
让运行的结停下来?

解决方案 »

  1.   

    还是不行呀!能不能在说具体点!
    我以前在BCB中建控制台程序时,是这样做的首先包含#include <conio.h>
    在在程序的最后加一个GetChar();这样程序就能停下来。直到你比键盘上输入一个字符时。
    但是,在delphi在就不知道怎么做了》
      

  2.   

    用Readln试试,D7帮助里的例子:{ This example assumes you are compiling as a console application }var
       s : string;
     begin
       Write('Enter a line of text: ');
       Readln(s);
       Writeln('You typed: ',s);
       Writeln('Hit <Enter> to exit');
       Readln;
     end;