|
From: JTBaccarat <jtb...@ro...> - 2004-04-27 00:07:05
|
Mark,
Guillermo,
Jay,
Matthew,
Reid,
Oscar,
Scott;
Many thanks. Ask a simple question...get a bunch of great answers.
Cheers,
Jamie
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of =
JTBaccarat
Sent: Monday, April 26, 2004 7:41 PM
To: 'Dev-C++'
Subject: RE: [Dev-C++] Newbie Question
Guillermo,
Jay,
Matthew,
Reid,
Oscar,
Scott;
Many thanks. Ask a simple question...get a bunch of great answers.
Cheers,
Jamie
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of =
JTBaccarat
Sent: Monday, April 26, 2004 11:48 AM
To: 'Dev-C++'
Subject: [Dev-C++] Newbie Question
I am very new to coding and I am working through a novice textbook.
My programs never get past the "Enter an integer" stage. The DOS box =
opens
to enter the integers and then it closes.
Does anyone have any ideas how I can configure Dev-C++ to function =
properly?
A basic example is below.
Thanks,
Jamie
#include <iostream>
using namespace std;
int main()
{ // EXAMPLE 3.8 USING COMPOUND CONDITIONS
// Uses the compound conditions to find the minimum of three integers
int n1,n2,n3;
cout << "Enter three integers: ";
cin >> n1 >> n2 >> n3;
if (n1 <=3D n2 && n1 <=3D n3) cout << "Their minimum is " << n1 << =
endl;
if (n2 <=3D n1 && n2 <=3D n3) cout << "Their minimum is " << n2 << =
endl;
if (n3 <=3D n1 && n3 <=3D n2) cout << "Their minimum is " << n3 << =
endl;
cin.get();
return 0;
}
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|