Thread overview
Something like system(PAUSE) like in C++ under windows?
May 24, 2007
Charma
May 24, 2007
Gregor Kopp
May 24, 2007
Charma
May 24, 2007
Xinok
May 24, 2007
check out the subject...

Thanks to all responses!

Charma
May 24, 2007
Maybe this?




import std.stdio;

int main(char[][] args)
{
    printf("Print any key to quit this...");
    getch;
    return 0;
}
May 24, 2007
Charma wrote:
> check out the subject...
> 
> Thanks to all responses!
> 
> Charma

import std.c.process;

void main () {
  system("pause".ptr);
}

-- Chris Nicholson-Sauls
May 24, 2007
thanks that was all i wanted :)
May 24, 2007
D also has it's own function, if you don't want to use the C function:

import std.process;

void main(){
	system("pause");
}

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