dev-cpp-users Mailing List for Dev-C++ (Page 748)
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: Eliud R. <inq...@ya...> - 2000-12-14 15:04:50
|
Has anyone gotten Dev-C++ 4 to work with DirectX. I'm trying to compile a DirectX 8 program and I'm still getting the following error message c:\my documents\main.o(.text+0x1d0):main.cpp: undefined reference to `DirectDrawCreateEx@16' I have the following option "-fvtable-thunks" set, as well as linking to libraries ddraw & dxguid. Also the include files are set. I tried using the directx7 package but I get the same error. I looked over the past postings and still haven't found a clear answer. __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ |
|
From: <jos...@ya...> - 2000-12-14 13:26:03
|
Hi,
Not only removing the ";" but you have to replace the 2nd "if" for an
"else if". Then everything should be OK.
Chemanuel
--- Igor_Pierciñski <igo...@po...> escribió: >
Hi,
>
> If you remove the ";" after else than your program should work
> the way you want. You could also change your program
> so that you do the reading of data in a loop.
>
>
> Regards
>
> Igor Pierscinski
>
> -----Original Message-----
> From: J R [ mailto:ray...@ya...
> <mailto:ray...@ya...> ]
> Sent: Thursday, December 14, 2000 3:50 AM
> To: dev...@li...
> <mailto:dev...@li...>
> Subject: [Dev-C++] temperture converter problem-help needed
>
>
>
> ok I'm trying to make a simple celcius, farenheit converter. I want
> it to
> ask which you want to convert to, what temperature, and then convert.
> I
> already have everything working prefectly except that I ask the user
> to type
> in what to convert to. The way I have it if they type 1 it converts
> celcius
> to farenheit and 2 farenheit to celcius. Now heres the problem. I
> want it
> so that if a user types any number but 1 or 22 it says "invalid
> entry" I
> have that working too but if the user picks to type in 1 to convert
> celcius
> to farenheit right after he puts in his number it converts it and
> then says
> invalid entry. I dont want it to say invalid entry there. Only if
> the user
> types in something besides 1 or 2. Heres the code any help would be
> great.
>
>
>
> #include <iostream>
> #include <string>
> #include <stdlib.h>
>
> using namespace std;
>
> int main()
> {
> while(1)
> {
> string type;
>
> cout << "Would you like to convert to Celcius or Farenheit?" <<endl;
> cout << " " <<endl;
> cout << "1. Farenheit" <<endl;
> cout << " " <<endl;
> cout << "2. Celcius" <<endl;
> cout << " " <<endl;
> cin >>type;
>
> if (type== "1")
> {
> unsigned short int tempc;
> cout << " " <<endl;
> cout << "Please enter the Celcius temperature you wish to
> convert."<<endl;
> cin>> tempc;
> cout << " " <<endl;
> unsigned short int degreefarenheit=tempc*9/5+32;
> cout << " " <<endl;
> cout << "Temperature in Farenheit:" << degreefarenheit <<endl;
> cout << " " <<endl;
> }
> if (type== "2")
> {
> unsigned short int tempf;
> cout << " " <<endl;
> cout << "Please enter the farenheit temperature you wish to
> convert."<<endl;
> cin >> tempf;
> cout << " " <<endl;
> unsigned short int degreecelcius=tempf-32*5/9;
> cout << " " <<endl;
> cout << "Temperature in Celcius:" << degreecelcius <<endl;
> cout &l! t;< " " <<endl;
> }
> else;
> {
> cout << "Invalid entry please try again" <<endl;
> }
> system("PAUSE");
> }
> return 0;
> }
>
>
>
>
> If you could rewrite it for me or just tell me what I did wrong it
> would be
> greatly appreciated.
>
> Thanks again,
>
> J
>
>
>
>
> _____
>
> Do You Yahoo!?
> Yahoo! <http://shopping.yahoo.com/> Shopping - Thousands of Stores.
> Millions of Products.
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
|
|
From: Gregor P. <Gre...@dl...> - 2000-12-14 12:51:51
|
Hi folks,
can anybody tell me how to get rid of the compiler output automaticly
when it isn't needed?
I already checked
View / Compiler Output / Show only when needed
but the window with those messages keeps visible all the time.
Gregor
|
|
From:
<igo...@po...> - 2000-12-14 10:55:23
|
Hi,
If you remove the ";" after else than your program should work
the way you want. You could also change your program
so that you do the reading of data in a loop.
Regards
Igor Pierscinski
-----Original Message-----
From: J R [ mailto:ray...@ya... <mailto:ray...@ya...> ]
Sent: Thursday, December 14, 2000 3:50 AM
To: dev...@li...
<mailto:dev...@li...>
Subject: [Dev-C++] temperture converter problem-help needed
ok I'm trying to make a simple celcius, farenheit converter. I want it to
ask which you want to convert to, what temperature, and then convert. I
already have everything working prefectly except that I ask the user to type
in what to convert to. The way I have it if they type 1 it converts celcius
to farenheit and 2 farenheit to celcius. Now heres the problem. I want it
so that if a user types any number but 1 or 22 it says "invalid entry" I
have that working too but if the user picks to type in 1 to convert celcius
to farenheit right after he puts in his number it converts it and then says
invalid entry. I dont want it to say invalid entry there. Only if the user
types in something besides 1 or 2. Heres the code any help would be great.
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main()
{
while(1)
{
string type;
cout << "Would you like to convert to Celcius or Farenheit?" <<endl;
cout << " " <<endl;
cout << "1. Farenheit" <<endl;
cout << " " <<endl;
cout << "2. Celcius" <<endl;
cout << " " <<endl;
cin >>type;
if (type== "1")
{
unsigned short int tempc;
cout << " " <<endl;
cout << "Please enter the Celcius temperature you wish to convert."<<endl;
cin>> tempc;
cout << " " <<endl;
unsigned short int degreefarenheit=tempc*9/5+32;
cout << " " <<endl;
cout << "Temperature in Farenheit:" << degreefarenheit <<endl;
cout << " " <<endl;
}
if (type== "2")
{
unsigned short int tempf;
cout << " " <<endl;
cout << "Please enter the farenheit temperature you wish to convert."<<endl;
cin >> tempf;
cout << " " <<endl;
unsigned short int degreecelcius=tempf-32*5/9;
cout << " " <<endl;
cout << "Temperature in Celcius:" << degreecelcius <<endl;
cout &l! t;< " " <<endl;
}
else;
{
cout << "Invalid entry please try again" <<endl;
}
system("PAUSE");
}
return 0;
}
If you could rewrite it for me or just tell me what I did wrong it would be
greatly appreciated.
Thanks again,
J
_____
Do You Yahoo!?
Yahoo! <http://shopping.yahoo.com/> Shopping - Thousands of Stores.
Millions of Products.
|
|
From: zhusain <zh...@bo...> - 2000-12-14 10:35:11
|
Many thanks for the response. Please do guide me how to associate .c and .cpp files befor running Devcpp.My window explorer indicates only one folder devcpp4,and clicking it brings up source code on the wordpad document. Probably this is very preliminary,but pardon me for my ignorance and help me. Thanks - Husain ----- Original Message ----- From: Colin Laplace <web...@bl...> To: <dev...@li...> Sent: Wednesday, December 13, 2000 4:06 PM Subject: Re: [Dev-C++] Bloodsed devcpp4 > > Thanks for the response.I have Windows 95.When I open the file I get Source > > Code on Word Pad document.Do you think I should download again.There is no > > response from Blood Shed either.Please help. > > i don't remember to have received your email. Before trying to load a source > file in Dev-C++ from the explorer you need to run DevCpp.exe one time, that it > associates .c and .cpp files with it. After installing it you should have a > Dev-C++ menu in your Start menu/Programs, so run it from there before. > > Hope this helps, > Colin > web...@bl... > > > Thanks - Husain > > > > ----- Original Message ----- > > From: Kuriyama Hsutaro <hs...@ho...> > > To: <dev...@li...> > > Sent: Wednesday, December 13, 2000 1:59 AM > > Subject: Re: [Dev-C++] Bloodsed devcpp4 > > > > > > > > > > Hi. > > > > > > What do you mean when you say you can't operate it? What happens when you > > > try to start it up? (Sprry. you need to be more specific) > > > > > > As for the answer to your question, I don't think there are any notable > > > requirements. What version/langueage of Windows do you use? > > > > > > Hope this helps! > > > > > > Hsutaro > > > > > > > > > >From: "zhusain" <zh...@bo...> > > > >Reply-To: dev...@li... > > > >To: <dev...@li...> > > > >Subject: [Dev-C++] Bloodsed devcpp4 > > > >Date: Tue, 12 Dec 2000 11:44:17 +0530 > > > > > > > >I am new to the CPP.I have downloaded devcpp4 on my hard disk.I am not > > > able to operate the programme.Are there any special requirements for > > > installing and initialising the programme? > > > > > > > >Please some body help me. > > > > > > > >Thanks - Husain > > > > > > > > ____________________________________________________________________________ > > _________ > > > > > > Get more from the Web. FREE MSN Explorer download : > > http://explorer.msn.com > > > > > > _______________________________________________ > > > Dev-cpp-users mailing list > > > Dev...@li... > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > -- > Colin Laplace > web...@bl... > http://www.bloodshed.net > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: <bis...@bt...> - 2000-12-14 09:44:15
|
First, find the exe file (DevCpp.exe). For this, click on the start menu, then go to Find -> Find files or folfer. Then search for DevCpp.exe in your C: drive. If you don't find it then you have not installed the program properly. If you find it then double-click on it to run DevC++ for teh first time. > -----Original Message----- > From: zhusain [mailto:zh...@bo...] > Sent: 14 December 2000 06:22 > To: dev-cpp-users > Subject: Re: [Dev-C++] Bloodsed devcpp4 > > > Many thanks for the response. > > Please do guide me how to associate .c and .cpp files befor running > Devcpp.My window explorer indicates only one folder > devcpp4,and clicking it > brings up source code on the wordpad document. > > Probably this is very preliminary,but pardon me for my > ignorance and help > me. > Thanks - Husain > ----- Original Message ----- > From: Colin Laplace <web...@bl...> > To: <dev...@li...> > Sent: Wednesday, December 13, 2000 4:06 PM > Subject: Re: [Dev-C++] Bloodsed devcpp4 > > > > > Thanks for the response.I have Windows 95.When I open the > file I get > Source > > > Code on Word Pad document.Do you think I should download > again.There is > no > > > response from Blood Shed either.Please help. > > > > i don't remember to have received your email. Before trying > to load a > source > > file in Dev-C++ from the explorer you need to run > DevCpp.exe one time, > that it > > associates .c and .cpp files with it. After installing it > you should have > a > > Dev-C++ menu in your Start menu/Programs, so run it from > there before. > > > > Hope this helps, > > Colin > > web...@bl... > > > > > Thanks - Husain > > > > > > ----- Original Message ----- > > > From: Kuriyama Hsutaro <hs...@ho...> > > > To: <dev...@li...> > > > Sent: Wednesday, December 13, 2000 1:59 AM > > > Subject: Re: [Dev-C++] Bloodsed devcpp4 > > > > > > > > > > > > > > Hi. > > > > > > > > What do you mean when you say you can't operate it? > What happens when > you > > > > try to start it up? (Sprry. you need to be more specific) > > > > > > > > As for the answer to your question, I don't think there are any > notable > > > > requirements. What version/langueage of Windows do you use? > > > > > > > > Hope this helps! > > > > > > > > Hsutaro > > > > > > > > > > > > >From: "zhusain" <zh...@bo...> > > > > >Reply-To: dev...@li... > > > > >To: <dev...@li...> > > > > >Subject: [Dev-C++] Bloodsed devcpp4 > > > > >Date: Tue, 12 Dec 2000 11:44:17 +0530 > > > > > > > > > >I am new to the CPP.I have downloaded devcpp4 on my > hard disk.I am > not > > > > able to operate the programme.Are there any special > requirements for > > > > installing and initialising the programme? > > > > > > > > > >Please some body help me. > > > > > > > > > >Thanks - Husain > > > > > > > > > > > > ______________________________________________________________ > ______________ > > > _________ > > > > > > > > Get more from the Web. FREE MSN Explorer download : > > > http://explorer.msn.com > > > > > > > > _______________________________________________ > > > > Dev-cpp-users mailing list > > > > Dev...@li... > > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > > > > _______________________________________________ > > > Dev-cpp-users mailing list > > > Dev...@li... > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > -- > > Colin Laplace > > web...@bl... > > http://www.bloodshed.net > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: zhusain <zh...@bo...> - 2000-12-14 06:35:43
|
Many thanks for the response. Please do guide me how to associate .c and .cpp files befor running Devcpp.My window explorer indicates only one folder devcpp4,and clicking it brings up source code on the wordpad document. Probably this is very preliminary,but pardon me for my ignorance and help me. Thanks - Husain ----- Original Message ----- From: Colin Laplace <web...@bl...> To: <dev...@li...> Sent: Wednesday, December 13, 2000 4:06 PM Subject: Re: [Dev-C++] Bloodsed devcpp4 > > Thanks for the response.I have Windows 95.When I open the file I get Source > > Code on Word Pad document.Do you think I should download again.There is no > > response from Blood Shed either.Please help. > > i don't remember to have received your email. Before trying to load a source > file in Dev-C++ from the explorer you need to run DevCpp.exe one time, that it > associates .c and .cpp files with it. After installing it you should have a > Dev-C++ menu in your Start menu/Programs, so run it from there before. > > Hope this helps, > Colin > web...@bl... > > > Thanks - Husain > > > > ----- Original Message ----- > > From: Kuriyama Hsutaro <hs...@ho...> > > To: <dev...@li...> > > Sent: Wednesday, December 13, 2000 1:59 AM > > Subject: Re: [Dev-C++] Bloodsed devcpp4 > > > > > > > > > > Hi. > > > > > > What do you mean when you say you can't operate it? What happens when you > > > try to start it up? (Sprry. you need to be more specific) > > > > > > As for the answer to your question, I don't think there are any notable > > > requirements. What version/langueage of Windows do you use? > > > > > > Hope this helps! > > > > > > Hsutaro > > > > > > > > > >From: "zhusain" <zh...@bo...> > > > >Reply-To: dev...@li... > > > >To: <dev...@li...> > > > >Subject: [Dev-C++] Bloodsed devcpp4 > > > >Date: Tue, 12 Dec 2000 11:44:17 +0530 > > > > > > > >I am new to the CPP.I have downloaded devcpp4 on my hard disk.I am not > > > able to operate the programme.Are there any special requirements for > > > installing and initialising the programme? > > > > > > > >Please some body help me. > > > > > > > >Thanks - Husain > > > > > > > > ____________________________________________________________________________ > > _________ > > > > > > Get more from the Web. FREE MSN Explorer download : > > http://explorer.msn.com > > > > > > _______________________________________________ > > > Dev-cpp-users mailing list > > > Dev...@li... > > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > -- > Colin Laplace > web...@bl... > http://www.bloodshed.net > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: zhusain <zh...@bo...> - 2000-12-14 06:28:26
|
Thanks for the response. I could not associate .c and .cpp files.The entire programme is lying in one folrder devcpp4.Clicking it should create te environment,instead appears the source on a wordpad document. Probably some thing very preliminary is missing.Pardon for my ignorance but do help me please. Thanks - Husain ----- Original Message ----- From: Kuriyama Hsutaro <hs...@ho...> To: <dev...@li...> Sent: Wednesday, December 13, 2000 5:27 PM Subject: Re: [Dev-C++] Bloodsed devcpp4 > > So your saying that you can't open source code? > And Dev-C++ won't respond? > > Well, I don't know about the program itself, but for you to open source > code, you need to associate Dev-C++ with .c and .cpp files first. If you've > already done that and it still doesn't work... well, you should be able to > open code files directly from Dev-C++,(Which is the same thing) > > If it's the program that doesn't work, I think you should try downloading > again. > > Taro > > >From: "zhusain" <zh...@bo...> > >Reply-To: dev...@li... > >To: <dev...@li...> > >Subject: Re: [Dev-C++] Bloodsed devcpp4 > >Date: Wed, 13 Dec 2000 12:09:55 +0530 > > > >Hsutao : Hi ! > > > >Thanks for the response.I have Windows 95.When I open the file I get > Source > >Code on Word Pad document.Do you think I should download again.There is no > >response from Blood Shed either.Please help. > > > >Thanks - Husain > > > > ____________________________________________________________________________ _________ > > Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: J R <ray...@ya...> - 2000-12-14 02:50:11
|
ok I'm trying to make a simple celcius, farenheit converter. I want it to ask which you want to convert to, what temperature, and then convert. I already have everything working prefectly except that I ask the user to type in what to convert to. The way I have it if they type 1 it converts celcius to farenheit and 2 farenheit to celcius. Now heres the problem. I want it so that if a user types any number but 1 or 22 it says "invalid entry" I have that working too but if the user picks to type in 1 to convert celcius to farenheit right after he puts in his number it converts it and then says invalid entry. I dont want it to say invalid entry there. Only if the user types in something besides 1 or 2. Heres the code any help would be great.
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main()
{
while(1)
{
string type;
cout << "Would you like to convert to Celcius or Farenheit?" <<endl;
cout << " " <<endl;
cout << "1. Farenheit" <<endl;
cout << " " <<endl;
cout << "2. Celcius" <<endl;
cout << " " <<endl;
cin >>type;
if (type== "1")
{
unsigned short int tempc;
cout << " " <<endl;
cout << "Please enter the Celcius temperature you wish to convert."<<endl;
cin>> tempc;
cout << " " <<endl;
unsigned short int degreefarenheit=tempc*9/5+32;
cout << " " <<endl;
cout << "Temperature in Farenheit:" << degreefarenheit <<endl;
cout << " " <<endl;
}
if (type== "2")
{
unsigned short int tempf;
cout << " " <<endl;
cout << "Please enter the farenheit temperature you wish to convert."<<endl;
cin >> tempf;
cout << " " <<endl;
unsigned short int degreecelcius=tempf-32*5/9;
cout << " " <<endl;
cout << "Temperature in Celcius:" << degreecelcius <<endl;
cout << " " <<endl;
}
else;
{
cout << "Invalid entry please try again" <<endl;
}
system("PAUSE");
}
return 0;
}
If you could rewrite it for me or just tell me what I did wrong it would be greatly appreciated.
Thanks again,
J
---------------------------------
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products. |
|
From: Kuriyama H. <hs...@ho...> - 2000-12-13 11:57:12
|
So your saying that you can't open source code? And Dev-C++ won't respond? Well, I don't know about the program itself, but for you to open source code, you need to associate Dev-C++ with .c and .cpp files first. If you've already done that and it still doesn't work... well, you should be able to open code files directly from Dev-C++,(Which is the same thing) If it's the program that doesn't work, I think you should try downloading again. Taro >From: "zhusain" <zh...@bo...> >Reply-To: dev...@li... >To: <dev...@li...> >Subject: Re: [Dev-C++] Bloodsed devcpp4 >Date: Wed, 13 Dec 2000 12:09:55 +0530 > >Hsutao : Hi ! > >Thanks for the response.I have Windows 95.When I open the file I get Source >Code on Word Pad document.Do you think I should download again.There is no >response from Blood Shed either.Please help. > >Thanks - Husain > _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
|
From: Colin L. <web...@bl...> - 2000-12-13 10:44:55
|
> Thanks for the response.I have Windows 95.When I open the file I get Source > Code on Word Pad document.Do you think I should download again.There is no > response from Blood Shed either.Please help. i don't remember to have received your email. Before trying to load a source file in Dev-C++ from the explorer you need to run DevCpp.exe one time, that it associates .c and .cpp files with it. After installing it you should have a Dev-C++ menu in your Start menu/Programs, so run it from there before. Hope this helps, Colin web...@bl... > Thanks - Husain > > ----- Original Message ----- > From: Kuriyama Hsutaro <hs...@ho...> > To: <dev...@li...> > Sent: Wednesday, December 13, 2000 1:59 AM > Subject: Re: [Dev-C++] Bloodsed devcpp4 > > > > > > Hi. > > > > What do you mean when you say you can't operate it? What happens when you > > try to start it up? (Sprry. you need to be more specific) > > > > As for the answer to your question, I don't think there are any notable > > requirements. What version/langueage of Windows do you use? > > > > Hope this helps! > > > > Hsutaro > > > > > > >From: "zhusain" <zh...@bo...> > > >Reply-To: dev...@li... > > >To: <dev...@li...> > > >Subject: [Dev-C++] Bloodsed devcpp4 > > >Date: Tue, 12 Dec 2000 11:44:17 +0530 > > > > > >I am new to the CPP.I have downloaded devcpp4 on my hard disk.I am not > > able to operate the programme.Are there any special requirements for > > installing and initialising the programme? > > > > > >Please some body help me. > > > > > >Thanks - Husain > > > > > ____________________________________________________________________________ > _________ > > > > Get more from the Web. FREE MSN Explorer download : > http://explorer.msn.com > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users -- Colin Laplace web...@bl... http://www.bloodshed.net |
|
From: <bis...@bt...> - 2000-12-13 09:50:56
|
Are you just double-clicking on C++ files ? Try opening Dev C++ first from Start -> Programs -> Dev C++ -> Dev C++ (or from the shortcut icon). Then open the file using the File-> Open menu. - Biswa. > -----Original Message----- > From: zhusain [mailto:zh...@bo...] > Sent: 13 December 2000 06:40 > To: dev-cpp-users > Subject: Re: [Dev-C++] Bloodsed devcpp4 > > > Hsutao : Hi ! > > Thanks for the response.I have Windows 95.When I open the > file I get Source > Code on Word Pad document.Do you think I should download > again.There is no > response from Blood Shed either.Please help. > > Thanks - Husain > > ----- Original Message ----- > From: Kuriyama Hsutaro <hs...@ho...> > To: <dev...@li...> > Sent: Wednesday, December 13, 2000 1:59 AM > Subject: Re: [Dev-C++] Bloodsed devcpp4 > > > > > > Hi. > > > > What do you mean when you say you can't operate it? What > happens when you > > try to start it up? (Sprry. you need to be more specific) > > > > As for the answer to your question, I don't think there are > any notable > > requirements. What version/langueage of Windows do you use? > > > > Hope this helps! > > > > Hsutaro > > > > > > >From: "zhusain" <zh...@bo...> > > >Reply-To: dev...@li... > > >To: <dev...@li...> > > >Subject: [Dev-C++] Bloodsed devcpp4 > > >Date: Tue, 12 Dec 2000 11:44:17 +0530 > > > > > >I am new to the CPP.I have downloaded devcpp4 on my hard > disk.I am not > > able to operate the programme.Are there any special requirements for > > installing and initialising the programme? > > > > > >Please some body help me. > > > > > >Thanks - Husain > > > > > ______________________________________________________________ > ______________ > _________ > > > > Get more from the Web. FREE MSN Explorer download : > http://explorer.msn.com > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: <bis...@bt...> - 2000-12-13 09:47:50
|
http://members.fortunecity.com/honglilai/ - Biswa. > -----Original Message----- > From: softnasolutions-ltd.fsbusiness.co.uk > [mailto:so...@so...] > Sent: 12 December 2000 21:40 > To: dev-cpp-users > Subject: [Dev-C++] wxwindows integration with dev c++ > > > Hi all, > > I've just downloaded and installed wxwindows. Is there any way of > intergrating it with Dev c++ so that i can write and compile wxwindows > programs using dev c++. Also what are the down sides of such > an integration > if any. > > If it won't work with dev c++, then i'll like to know if > there is any editor > that i can use inconjuntion with my cygwin compiler (details of > configuration changes will be most well come). > > Lastly any further tip(s) on setting up wxwindows will be > most appreciated. > > > Napo. > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: zhusain <zh...@bo...> - 2000-12-13 06:41:43
|
Hsutao : Hi ! Thanks for the response.I have Windows 95.When I open the file I get Source Code on Word Pad document.Do you think I should download again.There is no response from Blood Shed either.Please help. Thanks - Husain ----- Original Message ----- From: Kuriyama Hsutaro <hs...@ho...> To: <dev...@li...> Sent: Wednesday, December 13, 2000 1:59 AM Subject: Re: [Dev-C++] Bloodsed devcpp4 > > Hi. > > What do you mean when you say you can't operate it? What happens when you > try to start it up? (Sprry. you need to be more specific) > > As for the answer to your question, I don't think there are any notable > requirements. What version/langueage of Windows do you use? > > Hope this helps! > > Hsutaro > > > >From: "zhusain" <zh...@bo...> > >Reply-To: dev...@li... > >To: <dev...@li...> > >Subject: [Dev-C++] Bloodsed devcpp4 > >Date: Tue, 12 Dec 2000 11:44:17 +0530 > > > >I am new to the CPP.I have downloaded devcpp4 on my hard disk.I am not > able to operate the programme.Are there any special requirements for > installing and initialising the programme? > > > >Please some body help me. > > > >Thanks - Husain > > ____________________________________________________________________________ _________ > > Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: softnasolutions-ltd.fsbusiness.co.uk <so...@so...> - 2000-12-12 21:40:04
|
Hi all, I've just downloaded and installed wxwindows. Is there any way of intergrating it with Dev c++ so that i can write and compile wxwindows programs using dev c++. Also what are the down sides of such an integration if any. If it won't work with dev c++, then i'll like to know if there is any editor that i can use inconjuntion with my cygwin compiler (details of configuration changes will be most well come). Lastly any further tip(s) on setting up wxwindows will be most appreciated. Napo. |
|
From: Nick <en...@ho...> - 2000-12-12 20:45:15
|
Hello again, > Hopefully that helped, otherwise feel free to post more of the > offending code, or a link if it's online. Never mind about the link, I found it in the backtraffic. A couple of notes, there are some places in Forger's tutorial where NULL is used instead of 0 or other valid parameters in that code; particularly in CreateFile and .styles. Not the best practice in C, and error- prone in C++. Here is a link describing proper use of CreateFile: http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/winbase/filesio_7wmd.htm That should all be one line. I would /strongly/ suggest finding Petzold's "Programming Windows" book if you are planning on doing Windows programming. You might even be able to find an earlier edition for cheap. HTH -- regards, Nick |
|
From: Kuriyama H. <hs...@ho...> - 2000-12-12 20:29:21
|
Hi. What do you mean when you say you can't operate it? What happens when you try to start it up? (Sprry. you need to be more specific) As for the answer to your question, I don't think there are any notable requirements. What version/langueage of Windows do you use? Hope this helps! Hsutaro >From: "zhusain" <zh...@bo...> >Reply-To: dev...@li... >To: <dev...@li...> >Subject: [Dev-C++] Bloodsed devcpp4 >Date: Tue, 12 Dec 2000 11:44:17 +0530 > >I am new to the CPP.I have downloaded devcpp4 on my hard disk.I am not able to operate the programme.Are there any special requirements for installing and initialising the programme? > >Please some body help me. > >Thanks - Husain _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
|
From: Kuriyama H. <hs...@ho...> - 2000-12-12 20:23:41
|
I forgot to add: you need to include <conio.c> >From: "Bruce Young" <y2...@ho...> >Reply-To: dev...@li... >To: dev...@li... >Subject: [Dev-C++] background color how do i change the background color of the console... say - white. _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
|
From: Kuriyama H. <hs...@ho...> - 2000-12-12 20:21:37
|
textbackground(15); //I can't think of white off hand but I think 15 is correct Hsutaro >From: "Bruce Young" <y2...@ho...> >Reply-To: dev...@li... >To: dev...@li... >Subject: [Dev-C++] background color >Date: Mon, 11 Dec 2000 21:20:10 -0600 how do i change the background color of the console... say - white. _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
|
From: Nick <en...@ho...> - 2000-12-12 19:25:54
|
Hello, > This is from the Forger's Win32 API tutorials. I tried to compile the > example "file_one" but in File_one.c I got the following error > messages: > > 17 file_one.c > warning: converting NULL to non-pointer type Ok, NULL is used for pointers. Make sure that NULL is being assigned to a pointer (eg: char * and not char) Actually, looking at the call below, should you really be assigning a NULL pointer to the above code or should it be the NUL character instead '\0'? > > 25 file_one.c > ANSI C++ forbids implicit conversion from `void *' in assignment Ok, generally, *.c files are compiled as C, not C++. C allows the implicit conversion, whereas C++ does not. You must provide a cast for the returned value (or compile as a C program). > > 49 file_one.c > warning: converting NULL to non-pointer type As above... > > 57 file_one.c > ANSI C++ forbids implicit conversion from `void *' in assignment Again... > > 179 file_one.c > warning: converting NULL to non-pointer type > Again... > 0 > > Both have the following same line of code: > > pszText = GlobalAlloc(GPTR, dwTextLength + 1); Ok, using the above variable notation, I would assume that pszText is defined as char * or equivalent (pointer to NUL terminated array of char.) pszText = (char *) GlobalAlloc(GPTR, dwTextLength + 1); Hopefully that helped, otherwise feel free to post more of the offending code, or a link if it's online. -- regards, Nick |
|
From: Richard P. E. <ev...@ma...> - 2000-12-12 17:37:08
|
This is from the Forger's Win32 API tutorials. I tried to compile the example "file_one" but in File_one.c I got the following error messages: 17 file_one.c warning: converting NULL to non-pointer type 25 file_one.c ANSI C++ forbids implicit conversion from `void *' in assignment 49 file_one.c warning: converting NULL to non-pointer type 57 file_one.c ANSI C++ forbids implicit conversion from `void *' in assignment 179 file_one.c warning: converting NULL to non-pointer type 0 Both have the following same line of code: pszText = GlobalAlloc(GPTR, dwTextLength + 1); Can anyone tell me what went wrong? Thank in advance. |
|
From: Nick <en...@ho...> - 2000-12-12 17:00:50
|
Hello, > in c++ use the following in Winmain: > wincl.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); // change > WHITE to LT_GRAY etc. C++ doesn't automatically mean creating windows. Anyway, the above is also valid C (though requiring the inclusion of non-standard headers, libraries, etc..) > in c use: > #include <graphice.h> > void far setbkcolor(int WHITE); No reason why this could not be used in C++ either (of course, assuming the existance of the appropriate headers, libraries, yada yada...) -- regards, Nick |
|
From: Nick <en...@ho...> - 2000-12-12 16:00:53
|
Hello, > Well, there is a textcolor() function in <conio.c> > > #include <iostream> > #include <conio.c> > using namespace std; You should not be #including .c files like this. That is what the linker is for. #include <conio.h> and add conio.o to the linker options. Including .c files leads to multiple definition errors from the linker. -- regards, Nick |
|
From: lstar36 <ls...@fl...> - 2000-12-12 12:20:41
|
in c++ use the following in Winmain: wincl.hbrBackground =3D (HBRUSH) GetStockObject(WHITE_BRUSH); // change = WHITE to LT_GRAY etc. in c use: #include <graphice.h> void far setbkcolor(int WHITE); lstar36 ----- Original Message -----=20 From: Bruce Young=20 To: dev...@li...=20 Sent: Monday, December 11, 2000 9:20 PM Subject: [Dev-C++] background color how do i change the background color of the console... say - white. -------------------------------------------------------------------------= ----- Get more from the Web. FREE MSN Explorer download : = http://explorer.msn.com _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users=20 |
|
From: Ioannis V. <no...@ya...> - 2000-12-12 11:17:13
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Nick > Sent: Tuesday, December 12, 2000 9:48 AM > To: dev...@li... > Subject: RE: [Dev-C++] I am new to C ++ and need some help > > > > Hello, > > > In fact the following stuff can be used in C++ only. > > > > char s1[20], s2[20]; > > ... > > > > if(s1==s2) > > ... > > > > The overloaded string operator == accepts 2 strings (objects) and the > > C-style strings are "upgraded" to temporary strings so as the > > comparison to work. > > You can use == as long as one of the arguments is a (C++) string > object. In your example above, it does not use the string operator. Oops, you are absolutely right, it is pointer comparison. Ioannis __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com |