Something like system(PAUSE) like in C++ under windows?
Xinok
xnknet at gmail.com
Thu May 24 08:27:33 PDT 2007
Chris Nicholson-Sauls wrote:
> Charma wrote:
>> check out the subject...
>>
>> Thanks to all responses!
>>
>> Charma
>
> import std.c.process;
>
> void main () {
> system("pause".ptr);
> }
>
> -- Chris Nicholson-Sauls
It doesn't compile if you convert it to a pointer, because D doesn't use
null terminators. Leave the string as is:
system("pause");
More information about the Digitalmars-d
mailing list