www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Something like system(PAUSE) like in C++ under windows?

reply Charma <Motoko_Kusanagi web.de> writes:
check out the subject...

Thanks to all responses!

Charma
May 24 2007
next sibling parent Gregor Kopp <gk cutcopy.com> writes:
Maybe this?




import std.stdio;

int main(char[][] args)
{
     printf("Print any key to quit this...");
     getch;
     return 0;
}
May 24 2007
prev sibling parent reply Chris Nicholson-Sauls <ibisbasenji gmail.com> writes:
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
next sibling parent Charma <Motoko_Kusanagi web.de> writes:
thanks that was all i wanted :)
May 24 2007
prev sibling parent Xinok <xnknet gmail.com> writes:
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
May 24 2007