| Thread overview | |||||||
|---|---|---|---|---|---|---|---|
|
May 24, 2007 Something like system(PAUSE) like in C++ under windows? | ||||
|---|---|---|---|---|
| ||||
check out the subject... Thanks to all responses! Charma | ||||
May 24, 2007 Re: Something like system(PAUSE) like in C++ under windows? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Charma | Maybe this?
import std.stdio;
int main(char[][] args)
{
printf("Print any key to quit this...");
getch;
return 0;
}
| |||
May 24, 2007 Re: Something like system(PAUSE) like in C++ under windows? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Charma | 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 Re: Something like system(PAUSE) like in C++ under windows? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Chris Nicholson-Sauls | thanks that was all i wanted :) | |||
May 24, 2007 Re: Something like system(PAUSE) like in C++ under windows? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Chris Nicholson-Sauls | 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
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply