dev-cpp-users Mailing List for Dev-C++ (Page 696)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: jansb000 <jan...@wx...> - 2001-05-21 20:52:53
|
My advise is: use the compiler that your professor wants you to use. As = a future IT expert you are now in a position to learn an important = lesson: "The customer is always right". Too many IT professionals think = that they must argue about everything because they know that they are = right. Ok, you may be right, but investing time in discussions like this = are counter productive. Why? Because your project has probably nothing to do with which compiler = is ANSI C and to what extend. The professor is in a situation where = he/she has roots in the "old economy" (maybe even from the mainframe = generation). These people tend to hold on to what they know. I can give = you some examples of this if you want. Now you may think that the = professor has a problem? Not so... You should realise that a large part = of your future customers / bosses / colleagues will suffer from the = same. And ... you need them more then they need you. To show that you are a real professional, you should take a step back, = maybe exchange some arguments, but never overwhelm the professor (client = / colleague) with proof of his/her incompetence. They will never accept = this as a fact (who would?). My advise in a nutshell: Focus on getting your grade via the easiest way = possible. By the way; Some (although dated) research has shown that the = programming language has only a minimal effect (5%) on the timing of a = project. Choosing between C-dialects will have even a smaller impact. Is = it worth the time (and risk) that you are investing in it? You can still = develop in DevC++ and at the end port your project to the other = programming language? ----- Original Message -----=20 From: Mikael Aronsson=20 To: dev...@li...=20 Sent: Monday, May 21, 2001 2:53 PM Subject: Re: [Dev-C++] A question of professionalism Hi ! I good start is: = http://www.informatik.uni-hamburg.de/RZ/software/gnu/libraries/libc_1.htm= l#SEC4 the gcc compiler (the compiler used by Dev C++) is following the ANSI = C and C++ standards very close (much better then for example Microsoft's = C/C++ compiler, Borland/Inprise compilers are a step ahead of MS) I do belive that gcc is 100% compatible with the ansi C standard, I am = not sure how close the C++ part is though. Mikael ----- Original Message -----=20 From: Sam=20 To: dev...@li...=20 Sent: Monday, May 21, 2001 12:30 PM Subject: [Dev-C++] A question of professionalism Hello All, I have been using Bloodshed's Dev C++ 4.0 for two semesters at my = school, and=20 currently I am having some difficulty with a professor. The = professor states that Dev C++ is not a professional compiler nor is it a = standard C=20 compiler and therefore refuses to accept my projects. I wish to = obtain documentation to refute his claim. If you could point me=20 to any documentation I'd appreciate it. Thanks so much. Sam S. |
|
From: Elektro <el...@wo...> - 2001-05-21 19:26:57
|
Thanks >> Can I use MFC or DirectX in Dev-C++ ? > >MFC: no > >DirectX: yes e |
|
From: Elektro <el...@wo...> - 2001-05-21 19:25:07
|
Excuse me. Where I can found this file ? *********** REPLY SEPARATOR *********** On 20/05/01 at 16:58 Dou...@ao... wrote: You need to add the wsock32.lib to your project. A way to do this is= select 'Project' from the menu bar, then Add to project. Browse Lib for= wsock32.lib then select it. |
|
From: Paul P. <pau...@sy...> - 2001-05-21 19:05:18
|
I ran into the same situation and got around it by exactly the way just expressed. I compiled the programs at college using the standard MS compiler, which was entirely satisfactory to my instructor. The only problem I had was in the Lab test where the configuration was so different from Dev C++. My 2 cents, for what it's worth. :-) Jared Eckersley wrote: > Before you go on a crusade, you should realize that you can choose your > battles. Is this a battle really worth getting into. I had this problem, > and have found that it was much easier to develop at home using what ever I > had access to, then make sure the program compiled on a standard compiler, > Professor lingo for MS VC++. In my experience, you should not buck heads > with people who directly control your future. Learn to work around them. > Develop your projects with whatever tools you have, but make sure they > compile on the compiler your professor is advocating. That's my $.02. > > - Jared > > At 07:30 AM 5/21/2001 -0400, you wrote: > >Hello All, > > > >I have been using Bloodshed's Dev C++ 4.0 for two semesters at my school, and > >currently I am having some difficulty with a professor. The professor > >states that Dev C++ is not a professional compiler nor is it a standard C > >compiler and therefore refuses to accept my projects. I wish to obtain > >documentation to refute his claim. If you could point me > >to any documentation I'd appreciate it. Thanks so much. > > > >Sam S. > > "The secret of flying is to throw yourself > at the ground, and miss." -- Douglas Adams > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Jared E. <ja...@vo...> - 2001-05-21 18:57:25
|
Before you go on a crusade, you should realize that you can choose your battles. Is this a battle really worth getting into. I had this problem, and have found that it was much easier to develop at home using what ever I had access to, then make sure the program compiled on a standard compiler, Professor lingo for MS VC++. In my experience, you should not buck heads with people who directly control your future. Learn to work around them. Develop your projects with whatever tools you have, but make sure they compile on the compiler your professor is advocating. That's my $.02. - Jared At 07:30 AM 5/21/2001 -0400, you wrote: >Hello All, > >I have been using Bloodshed's Dev C++ 4.0 for two semesters at my school, and >currently I am having some difficulty with a professor. The professor >states that Dev C++ is not a professional compiler nor is it a standard C >compiler and therefore refuses to accept my projects. I wish to obtain >documentation to refute his claim. If you could point me >to any documentation I'd appreciate it. Thanks so much. > >Sam S. "The secret of flying is to throw yourself at the ground, and miss." -- Douglas Adams |
|
From: <jos...@ya...> - 2001-05-21 12:17:01
|
Hi, --- Àíàòîëèé Àëåêñååâè÷ Âîðîáåé <ga...@re...> escribió: > Hi, > could someone help me to find a quick sorting algorithm (program) > written in C or C++? That depends on what you need to sort, isn't it? What you need is the pseudocode or someone to write the program for you? Try at altavista.com or google.com Chemanuel _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger: Comunicación instantánea gratis con tu gente - http://messenger.yahoo.es |
|
From: Mitchell, T. (HNA) <Tam...@hj...> - 2001-05-21 11:50:41
|
Here is something that should raise a lot of eye brows. Please anyone = and everyone direct me to documentation that can indicate the validity of = the tool. He tends to think your compiler is sub-standard. Thanks Tamra Mitchell -----Original Message----- From: Mitchell, Tamra (HNA)=20 Sent: Monday, May 21, 2001 6:47 AM To: 'ste...@us...' Subject: RE: [re-evaluate grade] As I previously stated. This program also resides on the schools = computer which is of standards for Point Park College. How is it possible that at the end of the semester you can decide what = is standard and what is not? At the beginning of the semester when we told you we were using DEV C++ = from Bloodshed for our program and you should have been very specific and instructed us NOT to use this compiler. Not wait until after 10 = smaller programs using this same tool compiled then decide after grades were = turned in what compiler we could or could not use. I am filing a formal complaint for a grade appeal and I WILL NOT FORGET = TO MENTION THAT AT NO POINT DID YOU SAY WE WERE NOT ALLOWED TO USE ANY = OTHER COMPILER UNTIL MAY 19, 2001. I guess Point Park College's compiler is not professional standard = either since this is the compiler that is provided to all students? Tamra ---Original Message----- From: ste...@us... [mailto:ste...@us...] Sent: Saturday, May 19, 2001 3:09 PM To: Tam...@hj... Subject: Re: [re-evaluate grade] I have investigated the Bloodshed compiler and have found it not to be a professional (standards based)compiler. Therefore it is not acceptable. I will recompile all students address book programs using both Borland and Microsoft. If an execute file is produced I will evaluate it and evaluate if a grade change is called for. =20 Otherwise for the address book programs, no compile, no function and no credit. This evaluation process should take me about two weeks. Stephen Soto "Mitchell, Tamra (HNA)" <Tam...@hj...> wrote: > ---------------------------------------------=20 > Attachment:=A0=20 > MIME Type:=A0multipart/alternative=20 > ---------------------------------------------=20 Stefan: Will you please re-evaluate and resubmit my grade ASAP. My company offers tuition reimbursement and=20 The class was placed on my credit card which the interest is growing = until I pay off the balance. I will not get reimbursed from my company for any thing lower than a = 'B' which means I can not pay off my credit card in a timely manner. Thanks Tamra Y. Mitchell Heinz North America Operating Systems Analyst (412) 237-5232 Work (412) 996-9078 Cell Phone ____________________________________________________________________ Get free email and a permanent address at = http://www.netaddress.com/?N=3D1 |
|
From: Mikael A. <mik...@ma...> - 2001-05-21 11:49:35
|
Hi ! I good start is: http://www.informatik.uni-hamburg.de/RZ/software/gnu/libraries/libc_1.htm= l#SEC4 the gcc compiler (the compiler used by Dev C++) is following the ANSI C = and C++ standards very close (much better then for example Microsoft's = C/C++ compiler, Borland/Inprise compilers are a step ahead of MS) I do belive that gcc is 100% compatible with the ansi C standard, I am = not sure how close the C++ part is though. Mikael ----- Original Message -----=20 From: Sam=20 To: dev...@li...=20 Sent: Monday, May 21, 2001 12:30 PM Subject: [Dev-C++] A question of professionalism Hello All, I have been using Bloodshed's Dev C++ 4.0 for two semesters at my = school, and=20 currently I am having some difficulty with a professor. The = professor states that Dev C++ is not a professional compiler nor is it a = standard C=20 compiler and therefore refuses to accept my projects. I wish to = obtain documentation to refute his claim. If you could point me=20 to any documentation I'd appreciate it. Thanks so much. Sam S. |
|
From: <csc...@gm...> - 2001-05-21 11:39:45
|
Dev-C++ uses the GCC compiler internally. While the Dev-C++ program itself may be not-professional, the GCC compiler is a heavy open-source standard used on many platforms and operating systems. Actually GCC complies more to the draft C++ standard than Microsoft VC++ 6 does. However this may not help if your professor is biased against open-source and GCC :-) |
|
From: Sam <sch...@ho...> - 2001-05-21 11:25:41
|
Hello All, I have been using Bloodshed's Dev C++ 4.0 for two semesters at my = school, and=20 currently I am having some difficulty with a professor. The professor = states that Dev C++ is not a professional compiler nor is it a standard = C=20 compiler and therefore refuses to accept my projects. I wish to obtain = documentation to refute his claim. If you could point me=20 to any documentation I'd appreciate it. Thanks so much. Sam S. |
|
From: <ga...@re...> - 2001-05-21 09:47:04
|
Hi, could someone help me to find a quick sorting algorithm (program) = written in C or C++?=20 Thanks in advance. Aleksei. Reply to: ga...@re... |
|
From: <LO5...@ao...> - 2001-05-20 23:00:42
|
void main()=20
{=20
char choice;=20
int quantity;=20
int quit;=20
int cost;=20
int cost1;=20
int cost2;=20
int cost3;=20
int cost4;=20
int cost5;=20
int cost6;=20
int cost7;=20
int cost8;=20
int cost9;=20
int count =3D0 ;=20
int fbw=3D 61;=20
int fbb=3D 68;=20
int dp=3D 48;=20
int cc=3D358;=20
int crp=3D 98;=20
int cmp=3D159;=20
int pies=3D53;=20
int t1=3D92;=20
int t2=3D127;=20
int num;=20
cout << SKIP << "* * ******** The Bakery ************ * *" ;=20
cout << endl;=20
cout << endl;=20
cout << SKIP <<" Item code Item Price " ;=20
cout << SKIP;=20
cout << endl;=20
cout << endl;=20
cout << SKIP <<" a Fresh Bread White 61p "=20=
;=20
cout << endl;=20
cout << SKIP <<" b Fresh Bread brown 68p " ;=20
cout << endl;=20
cout << SKIP <<" c danish pastries 48p " ;=20
cout << endl;=20
cout << SKIP <<" d celabration cake 358p "=20=
;=20
cout << endl;=20
cout << SKIP <<" e cookies regular pack 98p "=20=
;=20
cout << endl;=20
cout << SKIP <<" f cookies maxi pack 159p "=20=
;=20
cout << endl;=20
cout << SKIP <<" g pies 53p " ;=20
cout << endl;=20
cout << SKIP <<" h sandwiches type 1 92p " ;=20
cout << endl;=20
cout << SKIP <<" i sandwiches type 2 127p "=20=
;=20
cout << endl;=20
cout << endl;=20
cout << SKIP <<"******************************************************"=20=
;=20
cout << endl;=20
count =3D 0 ;=20
while (quit !=3D SENNTINEL)=20
{=20
cout << "please select an item" <<endl;=20
cin >> choice;=20
cout << "please select quantity press"<<endl;=20
cin >> num;=20
count=3D count + 1;=20
cout<< count;=20
if(choice=3D 'a')=20
{=20
cost1=3D fbw * num;=20
}=20
if(choice=3D 'b')=20
{=20
cost2=3D fbb * num;=20
}=20
if(choice=3D'c')=20
{=20
cost3=3D dp * num;=20
}=20
if(choice=3D'd')=20
{=20
cost4=3D cc * num;=20
}=20
if(choice=3D'e')=20
{=20
cost5=3D crp * num;=20
}=20
if(choice=3D'f')=20
{=20
cost6=3D cmp * num;=20
}=20
if(choice=3D'g')=20
{=20
cost7=3D pies* num;=20
}=20
if(choice=3D'h')=20
{=20
cost8=3D t1 * num;=20
}=20
else if(choice=3D'i')=20
{=20
cost8=3D t2 * num;=20
}=20
cout << endl;=20
cout << "press -999 to quit or 111 to continue"<<endl;=20
cin >> quit;=20
}=20
cout << SKIP << "* * ******** The Bakery ************ * *" ;=20
cout << endl;=20
cout << endl;=20
cout << SKIP <<" Item code Item Price Quantity =20
Price2 " ;=20
cout << SKIP <<"=20
";=20
cout << endl;=20
cout << endl;=20
cout << SKIP <<" a Fresh Bread White 61p" <<" "<< =20
num <<" "<<cost1;=20
cout << endl;=20
cout << SKIP <<" b Fresh Bread brown 68p" <<" "<< =20
num <<" "<<cost2;=20
cout << endl;=20
cout << SKIP <<" c danish pastries 48p" <<" "<< =20
num <<" "<<cost3;=20
cout << endl;=20
cout << SKIP <<" d celabration cake 358p" <<" "<< =20
num <<" "<<cost4;=20
cout << endl;=20
cout << SKIP <<" e cookies regular pack 98p" <<" "<< =20
num <<" "<<cost5;=20
cout << endl;=20
cout << SKIP <<" f cookies maxi pack 159p" <<" "<< =20
num <<" "<<cost6;=20
cout << endl;=20
cout << SKIP <<" g pies 53p" <<" "<< =20
num <<" "<<cost7;=20
cout << endl;=20
cout << SKIP <<" h sandwiches type 1 92p" <<" "<< =20
num <<" "<<cost8;=20
cout << endl;=20
cout << SKIP <<" i sandwiches type 2 127p" <<" "<< =20
num <<" "<<cost9;=20
cout << endl;=20
cout << endl;=20
cout << SKIP <<"******************************************************"=20=
;=20
cout << endl;=20
system("PAUSE");=20
return 0;=20
}=20
hello programmers i was wondering if anyone could help me with a problem , i=
=20
am trying to calculate num but i can only calculate the last num entered by=20
the user i want to calculate all num (numbers) that the user types in ie i=20
want num to be stored each time a different value for num is entered so that=
=20
i can calculate different quantities of items=20
eg, 10(num) * =A33.50=20
2(num) *61p=20
15(num) 89p=20
each time num is entered i only receive calculations for the last num entere=
d=20
15 in this example, but i need all nums to be calculated. The user can only=20
type in a code for an item eg a=3Dfresh brown bread followed by a quantity=20
(represented by num) this process is repeated until the user is happy with=20
there selection from the menu. I need to print out a menu indicating item ,=20
quantity , then cost which is item * quantity but i seem to only be able to=20
calculate the last num the user enters.=20
thanx for your precious time and patience in advance=20
from lostboyz.=20
|
|
From: <LO5...@ao...> - 2001-05-20 22:55:55
|
#include <iostream.h>
#include <stdlib.h>
const char a =3D 61;
const int SENNTINEL=3D -999;
const char SKIP =3D' ';
void main()
{
char choice;
int quantity;
int quit;
int cost;
int cost1;
int cost2;
int cost3;
int cost4;
int cost5;
int cost6;
int cost7;
int cost8;
int cost9;
int count =3D0 ;
int fbw=3D 61;
int fbb=3D 68;
int dp=3D 48;
int cc=3D358;
int crp=3D 98;
int cmp=3D159;
int pies=3D53;
int t1=3D92;
int t2=3D127;
int num;
cout << SKIP << "* * ******** The Bakery ************ * *" ;
cout << endl;
cout << endl;
cout << SKIP <<" Item code Item Price "=
;
cout << SKIP;
cout << endl;
cout << endl;
cout << SKIP <<" a Fresh Bread White 61p "=
;
cout << endl;
cout << SKIP <<" b Fresh Bread brown 68p "=
;
cout << endl;
cout << SKIP <<" c danish pastries 48p "=
;
cout << endl;
cout << SKIP <<" d celabration cake 358p "=
;
cout << endl;
cout << SKIP <<" e cookies regular pack 98p "=
;
cout << endl;
cout << SKIP <<" f cookies maxi pack 159p "=
;
cout << endl;
cout << SKIP <<" g pies 53p "=
;
cout << endl;
cout << SKIP <<" h sandwiches type 1 92p "=
;
cout << endl;
cout << SKIP <<" i sandwiches type 2 127p "=
;
cout << endl;
cout << endl;
cout << SKIP <<"******************************************************"=
;
cout << endl;
count =3D 0 ;
while (quit !=3D SENNTINEL)
{
cout << "please select an item" <<endl;
cin >> choice;
cout << "please select quantity press"<<endl;
cin >> num;
count=3D count + 1;
cout<< count;
if(choice=3D 'a')
{
cost1=3D fbw * num;
}
if(choice=3D 'b')
{
cost2=3D fbb * num;
}
if(choice=3D'c')
{
cost3=3D dp * num;
}
if(choice=3D'd')
{
cost4=3D cc * num;
}
if(choice=3D'e')
{
cost5=3D crp * num;
}
if(choice=3D'f')
{
cost6=3D cmp * num;
}
if(choice=3D'g')
{
cost7=3D pies* num;
}
if(choice=3D'h')
{
cost8=3D t1 * num;
}
else if(choice=3D'i')
{
cost8=3D t2 * num;
}
cout << endl;
cout << "press -999 to quit or 111 to continue"<<endl;
cin >> quit;
}
cout << SKIP << "* * ******** The Bakery ************ * *" ;
cout << endl;
cout << endl;
cout << SKIP <<" Item code Item Price Quantity =20
Price2 " ;
cout << SKIP <<" =20=
=20
";
cout << endl;
cout << endl;
cout << SKIP <<" a Fresh Bread White 61p" <<" "<< =20
num <<" "<<cost1;
cout << endl;
cout << SKIP <<" b Fresh Bread brown 68p" <<" "<< =20
num <<" "<<cost2;
cout << endl;
cout << SKIP <<" c danish pastries 48p" <<" "<< =20
num <<" "<<cost3;
cout << endl;
cout << SKIP <<" d celabration cake 358p" <<" "<< =20
num <<" "<<cost4;
cout << endl;
cout << SKIP <<" e cookies regular pack 98p" <<" "<< =20
num <<" "<<cost5;
cout << endl;
cout << SKIP <<" f cookies maxi pack 159p" <<" "<< =20
num <<" "<<cost6;
cout << endl;
cout << SKIP <<" g pies 53p" <<" "<< =20
num <<" "<<cost7;
cout << endl;
cout << SKIP <<" h sandwiches type 1 92p" <<" "<< =20
num <<" "<<cost8;
cout << endl;
cout << SKIP <<" i sandwiches type 2 127p" <<" "<< =20
num <<" "<<cost9;
cout << endl;
cout << endl;
cout << SKIP <<"******************************************************"=
;
cout << endl;
system("PAUSE");
return 0;
}
hello programmers i was wondering if anyone could help me with a problem , i=
=20
am trying to calculate num but i can only calculate the last num entered by=20
the user i want to calculate all num (numbers) that the user types in ie i=20
want num to be stored each time a different value for num is entered so that=
=20
i can calculate different quantities of items
eg, 10(num) * =A33.50
2(num) *61p
15(num) 89p
each time num is entered i only receive calculations for the last num entere=
d=20
15 in this example, but i need all nums to be calculated. The user can only=20
type in a code for an item eg a=3Dfresh brown bread followed by a quantity=20
(represented by num) this process is repeated until the user is happy with=20
there selection from the menu. I need to print out a menu indicating item ,=20
quantity , then cost which is item * quantity but i seem to only be able to=20
calculate the last num the user enters.
thanx for your precious time and patience in advance=20
from lostboyz.=20
|
|
From: <Dou...@ao...> - 2001-05-20 20:58:22
|
You need to add the wsock32.lib to your project. A way to do this is select 'Project' from the menu bar, then Add to project. Browse Lib for wsock32.lib then select it. |
|
From: Elias P. <eli...@ao...> - 2001-05-20 18:31:55
|
> Can I use MFC or DirectX in Dev-C++ ? MFC: no DirectX: yes |
|
From: Elektro <el...@wo...> - 2001-05-20 18:24:04
|
I have a problem linking a program what use wsock32.dll library. I have this error: d:\mis programas\socket.o(.text+0x79):socket.c: undefined reference to= `socket@12' d:\mis programas\socket.o(.text+0xc2):socket.c: undefined reference to= `bind@12' Thanks |
|
From: Elektro <el...@wo...> - 2001-05-20 18:22:24
|
Can I use MFC or DirectX in Dev-C++ ? Thanks |
|
From: Colin L. <web...@bl...> - 2001-05-20 14:28:32
|
Unsubscribing info are at : http://www.bloodshed.net/devcpp-ml.html Please do not post unsubscribe request on the Dev-C++ mailing list, = there is more than 300 people who will get you unsubscribe request... Greetings, Colin ----- Original Message -----=20 From: gem Mail=20 To: Dev...@li...=20 Sent: Sunday, May 20, 2001 4:59 AM Subject: [Dev-C++] Dev C++ Mailing List Hi; I've enjoyed using DevC++ and I still use it for some apps. = Great freeware IDE! However I now have Visual Studio 6, and belong to the = developers group, Microsoft runs. Please remove me from the DevC++ mailing list Once again thanks Colin et al. Yours truly --- Glen ---=20 =20 =20 _________________________________________________ IncrediMail - Email has finally evolved - Click Here=20 |
|
From: Martin R. <ri...@po...> - 2001-05-20 09:01:21
|
On 19 May 2001, at 20:43, DeAd PhXcKaH wrote:
> The best way to start off (took me awhile to figure this out) and actually
> run a program - use the hello world template when you start a new project..
> then delete:
> > cout << "Press ENTER to continue..." << endl;
> > getchar ();
>
> and stick in:
> system("PAUSE");
>
> then you can do whatever you want with C++ (text stuff) and it will be in
> the dos window.
>
>
Hello,
Thank you very much for your hint!
In my case this gives the following listing:
----------------------------------------------------------
#include <windows.h>
#include <c:\dev-c++\include\g++\iostream.h>
#include <c:\dev-c++\include\stdio.h>
#include <c:\dev-c++\include\stdlib.h>
int main()
{
cout << "Hello World!" << endl;
system("PAUSE");
return 0;
}
----------------------------------------------------------
Where can I get a list of the system calls (for exemple
system("PAUSE");)?
Is there a way to do the same thing within the Windows-
System? Where can I obtain a list of the Windows-
specific calls?
Is there an automatic system to install a program so, that
it creates an icon on the screen?
Is there a good Tutor on the net?
Thak you very much for your indications!
Kind regards
Martin Riat
|
|
From: gem M. <ge...@ac...> - 2001-05-20 02:57:19
|
Hi;
I've enjoyed using DevC++ and I still use it for some apps. Great freew=
are IDE!
However I now have Visual Studio 6, and belong to the developers group,=
Microsoft runs.
Please remove me from the DevC++ mailing list
Once again thanks Colin et al.
Yours truly --- Glen --- |
|
From: James (You) <jim...@ho...> - 2001-05-20 02:02:32
|
I need to get an array in postfix notation to a tree and from the tree into infix prefix and postfix. i have most of it done except the insert function,which is most of the work. Any help would be good. jim _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com |
|
From: DeAd P. <dea...@ho...> - 2001-05-20 00:43:32
|
The best way to start off (took me awhile to figure this out) and actually
run a program - use the hello world template when you start a new project..
then delete:
> cout << "Press ENTER to continue..." << endl;
> getchar ();
and stick in:
system("PAUSE");
then you can do whatever you want with C++ (text stuff) and it will be in
the dos window.
--------------------------------------------------
>From: "Martin Riat" <ri...@po...>
>Reply-To: dev...@li...
>To: dev...@li...
>Subject: [Dev-C++] Problem of a Beginner
>Date: Sat, 19 May 2001 19:30:10 +0200
>
>Hello,
>
>Today I installed the Dev-C++ program from Bloodshed in
>its version 4. I am using Windows 98. Years ago I made
>some programs in Turbo Pascal from Borland and now I
>want to learn some C++. The first program I attempted
>today compiled without errors, but when I execute it,
>nothing happens. I proceeded in the following manner:
>
>I created a new project, clicking over the Windows
>Application (marked as a C++-Project). Compiling this
>stuff I just obtained a Window.
>
>Then I combined this dummy program with the 'Hello
>World' and obtained the listing that you will find at the
>end of this mail. I could compile and link it, but running it,
>it does not write nothing to the screen and does not wait
>until a introduce a letter from the keyboard.
>
>Another question: I have a 10 years old book from Tom
>Swan (Learning C++). Is it still useful?
>
>Kind regards
>Martin Riat (Spain)
>
>----------
>
>#include <windows.h>
>
>
>#include <c:\dev-c++\include\g++\iostream.h>
>#include <c:\dev-c++\include\stdio.h>
>#include <c:\dev-c++\include\stdlib.h>
>
>int main()
>{
> cout << "Hello World!" << endl;
>
> cout << "Press ENTER to continue..." << endl;
> getchar ();
> return 0;
>}
>
>
>
>
>/* Declare Windows procedure */
>LRESULT CALLBACK WindowProcedure(HWND, UINT,
>WPARAM, LPARAM);
>/* Make the class name into a global variable */
>char szClassName[ ] = "WindowsApp";
>int WINAPI WinMain(HINSTANCE hThisInstance,
>HINSTANCE hPrevInstance, LPSTR lpszArgument, int
>nFunsterStil)
>
>{
> HWND hwnd; /* This is the handle for our
>window */
> MSG messages; /* Here messages to the
>application are saved */
> WNDCLASSEX wincl; /* Data structure for the
>windowclass */
>
> /* The Window structure */
> wincl.hInstance = hThisInstance;
> wincl.lpszClassName = szClassName;
> wincl.lpfnWndProc = WindowProcedure; /* This
>function is called by windows */
> wincl.style = CS_DBLCLKS; /* Catch
>double-clicks */
> wincl.cbSize = sizeof(WNDCLASSEX);
>
> /* Use default icon and mouse-pointer */
> wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION);
> wincl.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
> wincl.hCursor = LoadCursor(NULL, IDC_ARROW);
> wincl.lpszMenuName = NULL; /* No menu */
> wincl.cbClsExtra = 0; /* No extra bytes
>after the window class */
> wincl.cbWndExtra = 0; /* structure or
>the window instance */
> /* Use light-gray as the background of the window */
> wincl.hbrBackground = (HBRUSH)
>GetStockObject(LTGRAY_BRUSH);
>
> /* Register the window class, if fail quit the program */
> if(!RegisterClassEx(&wincl)) return 0;
>
> /* The class is registered, let's create the program*/
> hwnd = CreateWindowEx(
> 0, /* Extended possibilites for
>variation */
> szClassName, /* Classname */
> "Windows App", /* Title Text */
> WS_OVERLAPPEDWINDOW, /* default window
>*/
> CW_USEDEFAULT, /* Windows decides the
>position */
> CW_USEDEFAULT, /* where the window
>ends up on the screen */
> 544, /* The programs width */
> 375, /* and height in pixels */
> HWND_DESKTOP, /* The window is a child-
>window to desktop */
> NULL, /* No menu */
> hThisInstance, /* Program Instance handler */
> NULL /* No Window Creation data */
> );
>
> /* Make the window visible on the screen */
> ShowWindow(hwnd, nFunsterStil);
> /* Run the message loop. It will run until GetMessage(
>) returns 0 */
> while(GetMessage(&messages, NULL, 0, 0))
> {
> /* Translate virtual-key messages into character
>messages */
> TranslateMessage(&messages);
> /* Send message to WindowProcedure */
> DispatchMessage(&messages);
> }
>
> /* The program return-value is 0 - The value that
>PostQuitMessage( ) gave */
> return messages.wParam;
>}
>
>/* This function is called by the Windows function
>DispatchMessage( ) */
>LRESULT CALLBACK WindowProcedure(HWND hwnd,
>UINT message, WPARAM wParam, LPARAM lParam)
>{
> switch (message) /* handle the messages
>*/
> {
> case WM_DESTROY:
> PostQuitMessage(0); /* send a WM_QUIT to
>the message queue */
> break;
> default: /* for messages that we don't
>deal with */
> return DefWindowProc(hwnd, message, wParam,
>lParam);
> }
> return 0;
>}
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
|
|
From: Martin R. <ri...@po...> - 2001-05-19 17:28:39
|
Hello,
Today I installed the Dev-C++ program from Bloodshed in
its version 4. I am using Windows 98. Years ago I made
some programs in Turbo Pascal from Borland and now I
want to learn some C++. The first program I attempted
today compiled without errors, but when I execute it,
nothing happens. I proceeded in the following manner:
I created a new project, clicking over the Windows
Application (marked as a C++-Project). Compiling this
stuff I just obtained a Window.
Then I combined this dummy program with the 'Hello
World' and obtained the listing that you will find at the
end of this mail. I could compile and link it, but running it,
it does not write nothing to the screen and does not wait
until a introduce a letter from the keyboard.
Another question: I have a 10 years old book from Tom
Swan (Learning C++). Is it still useful?
Kind regards
Martin Riat (Spain)
----------
#include <windows.h>
#include <c:\dev-c++\include\g++\iostream.h>
#include <c:\dev-c++\include\stdio.h>
#include <c:\dev-c++\include\stdlib.h>
int main()
{
cout << "Hello World!" << endl;
cout << "Press ENTER to continue..." << endl;
getchar ();
return 0;
}
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure(HWND, UINT,
WPARAM, LPARAM);
/* Make the class name into a global variable */
char szClassName[ ] = "WindowsApp";
int WINAPI WinMain(HINSTANCE hThisInstance,
HINSTANCE hPrevInstance, LPSTR lpszArgument, int
nFunsterStil)
{
HWND hwnd; /* This is the handle for our
window */
MSG messages; /* Here messages to the
application are saved */
WNDCLASSEX wincl; /* Data structure for the
windowclass */
/* The Window structure */
wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WindowProcedure; /* This
function is called by windows */
wincl.style = CS_DBLCLKS; /* Catch
double-clicks */
wincl.cbSize = sizeof(WNDCLASSEX);
/* Use default icon and mouse-pointer */
wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor(NULL, IDC_ARROW);
wincl.lpszMenuName = NULL; /* No menu */
wincl.cbClsExtra = 0; /* No extra bytes
after the window class */
wincl.cbWndExtra = 0; /* structure or
the window instance */
/* Use light-gray as the background of the window */
wincl.hbrBackground = (HBRUSH)
GetStockObject(LTGRAY_BRUSH);
/* Register the window class, if fail quit the program */
if(!RegisterClassEx(&wincl)) return 0;
/* The class is registered, let's create the program*/
hwnd = CreateWindowEx(
0, /* Extended possibilites for
variation */
szClassName, /* Classname */
"Windows App", /* Title Text */
WS_OVERLAPPEDWINDOW, /* default window
*/
CW_USEDEFAULT, /* Windows decides the
position */
CW_USEDEFAULT, /* where the window
ends up on the screen */
544, /* The programs width */
375, /* and height in pixels */
HWND_DESKTOP, /* The window is a child-
window to desktop */
NULL, /* No menu */
hThisInstance, /* Program Instance handler */
NULL /* No Window Creation data */
);
/* Make the window visible on the screen */
ShowWindow(hwnd, nFunsterStil);
/* Run the message loop. It will run until GetMessage(
) returns 0 */
while(GetMessage(&messages, NULL, 0, 0))
{
/* Translate virtual-key messages into character
messages */
TranslateMessage(&messages);
/* Send message to WindowProcedure */
DispatchMessage(&messages);
}
/* The program return-value is 0 - The value that
PostQuitMessage( ) gave */
return messages.wParam;
}
/* This function is called by the Windows function
DispatchMessage( ) */
LRESULT CALLBACK WindowProcedure(HWND hwnd,
UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) /* handle the messages
*/
{
case WM_DESTROY:
PostQuitMessage(0); /* send a WM_QUIT to
the message queue */
break;
default: /* for messages that we don't
deal with */
return DefWindowProc(hwnd, message, wParam,
lParam);
}
return 0;
}
|
|
From: Luigi S. <gi...@li...> - 2001-05-19 10:43:43
|
Hi !
Can anybody help me solve this silly problem with C++?
Suppose that I should write a program, named "copy_file", which supports
the following syntax:
command what it does
------------- -----------------------
copy_file copy cin on cout
copy_file input copy the file named "input" on cout
It would be nice to have the work done by these two steps:
- if you find a file name on the command line then attach cin to the file
- copy cin on cout
How do I "reopen" cin? (or, to make it clearer: is there a C++ equivalent
of the C function freopen?)
Any solution will be appreciated.
--
gisan
|
|
From: Elias P. <eli...@ao...> - 2001-05-18 20:06:28
|
> Ok sorry to keep bugging you guys but i have another problem.. to make a > random number everytime i use a program i would stick #include <time.h> at > the top and then add srand(clock()); in the program so that the number will > always be different..(randomize it) it doesnt work on here. what am i > doing wrong? > it gives no errors. Try time(0) instead of clock().. it's what works for me. |