Send Dev-cpp-users mailing list submissions to
dev...@li...
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
or, via email, send a message with subject or body 'help' to
dev...@li...
You can reach the person managing the list at
dev...@li...
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Dev-cpp-users digest..."
Today's Topics:
1. Re: How to print using dos (Ewald Horn)
2. RE: Newbie Question (JTBaccarat)
3. RE: Newbie Question (JTBaccarat)
--__--__--
Message: 1
From: "Ewald Horn" < in...@ho...>
To: < dev...@li...>
Subject: Re: [Dev-C++] How to print using dos
Date: Mon, 26 Apr 2004 23:58:57 +0200
Hi,
I use the following code to print from a console application.
// code
#include < stdio.h>
int main()
{
FILE *printer;
printer = fopen("PRN", "w");
fprintf(printer,"Test print line\f"); // \f is for form feed
fclose(printer);
return 0;
}
// end code
--__--__--
Message: 2
From: "JTBaccarat" < jtb...@ro...>
To: "'Dev-C++'" < dev...@li...>
Subject: RE: [Dev-C++] Newbie Question
Date: Mon, 26 Apr 2004 19:41:10 -0400
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
--__--__--
Message: 3
From: "JTBaccarat" < jtb...@ro...>
To: "'Dev-C++'" < dev...@li...>
Subject: RE: [Dev-C++] Newbie Question
Date: Mon, 26 Apr 2004 20:06:10 -0400
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
--__--__--
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
End of Dev-cpp-users Digest
|