digitalmars.D - Something like system(PAUSE) like in C++ under windows?
- Charma (3/3) May 24 2007 check out the subject...
- Gregor Kopp (8/8) May 24 2007 Maybe this?
- Chris Nicholson-Sauls (6/11) May 24 2007 import std.c.process;
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! Charmaimport 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! Charmaimport std.c.process; void main () { system("pause".ptr); } -- Chris Nicholson-Sauls
May 24 2007