digitalmars.D - Something like system(PAUSE) like in C++ under windows?
- Charma <Motoko_Kusanagi web.de> May 24 2007
- Gregor Kopp <gk cutcopy.com> May 24 2007
- Chris Nicholson-Sauls <ibisbasenji gmail.com> May 24 2007
- Charma <Motoko_Kusanagi web.de> May 24 2007
- Xinok <xnknet gmail.com> 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
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









Gregor Kopp <gk cutcopy.com> 