|
From: Vassili <v.v...@bt...> - 2001-03-01 03:37:59
|
you can also use the getch() function, this function waits for a key to be
pressed before it continues.
#include <stdio.h>
#include <conio.h> /* getch() found here */
int main()
{
/* Some code */
getch();
return;
}
----- Original Message -----
From: "Linda Hohenstein" <lz...@sp...>
To: <dev...@li...>
Sent: Tuesday, February 27, 2001 7:59 PM
Subject: Re: [Dev-C++] help
> Gatis,
>
> You could also try adding, before the return, cin.get();
>
> --------------------
> ----- Original Message -----
> From: "Schedler, Kurt" <Kur...@hi...>
> To: <dev...@li...>
> Sent: Tuesday, February 27, 2001 1:15 PM
> Subject: RE: [Dev-C++] help
>
>
> > The problem is that your program executes and ends so quickly that you
> > probably just don't see it.
> > try this:
> >
> > #include <iostream.h>
> > #include <stdio.h>
> >
> > int main()
> > {
> > cout << "Hello" << endl;
> > getchar();
> > return 0;
> > }
> >
> > The call to getchar will make your program wait until you hit Enter
before
> > it terminates.
> >
> > -----Original Message-----
> > From: Gatis Zvejnieks [mailto:gat...@ya...]
> > Sent: Wednesday, December 27, 2000 8:19 AM
> > To: dev...@li...
> > Subject: [Dev-C++] help
> >
> >
> > Hi,
> > I have a big problem with Dev-c++. When I run programms Dev-c++
minimazes
> > and maximizes. The program is OK but I don't see anything. For e4xample
> this
> > program should print on screen "Hello World!" but it runs and ends this
> > program and it is sad that that the programm has 0 errors. This is
Windows
> > application. What schould change some settings in Dev-c++.
> > #include <iostream.h>
> > int main()
> > {
> > cout << "Hello World!\n";
> > return 0;
> > }
> > Gatis.
> >
> >
> >
> > "The sender believes that this E-mail and any attachments were free of
any
> > virus, worm, Trojan horse, and/or malicious code when sent. This
message
> > and its attachments could have been infected during transmission. By
> > reading the message and opening any attachments, the recipient accepts
> full
> > responsibility for taking protective and remedial action about viruses
and
> > other defects. The sender's employer is not liable for any loss or
damage
> > arising in any way from this message or its attachments."
> >
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|