dev-cpp-users Mailing List for Dev-C++ (Page 37)
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: frederico s. <fre...@gm...> - 2008-02-16 21:11:42
|
Hello! I must create a delay in one of my programs. it's written on ANSI C. This delay must be 3 mileseconds (the time is ir irrelevant) I find delay function in ccs compiler for PIC family I must know which library I have use to use delay function in DEV compiler tanks |
From: Robert C. <cra...@gm...> - 2008-02-15 20:57:02
|
Dev...@li... |
From: Shawn <tre...@gm...> - 2008-02-13 14:09:46
|
Thanks everyone! :) Mayank Jain Nawal wrote: > Dear > > There is no problem with the bool data type. In the below code > comparison operator has been used instead of assignment operator for > changing the value of output variable. So in the below code value of > output variable is never changed to false and during the conditional > checking in the if statement it get its value as true. > > > >> ------------------------------ >> >> Message: 2 >> Date: Tue, 12 Feb 2008 00:03:54 -0500 >> From: Shawn <tre...@gm...> >> Subject: Re: [Dev-C++] bool data type >> To: ll...@cd... >> Cc: dev...@li... >> Message-ID: <47B...@gm...> >> Content-Type: text/plain; charset="iso-8859-1" >> >> I'm working with C++ though, my book says that the bool data type is >> a built-in type consisting of just two values, the constants true and >> false. >> I have the program compiling without error now, however, it still >> prints the last statement even though I didn't enter valid data. >> int main() >> { >> >> //Declare and initialize variables >> float weight = 0.0; >> float distance = 0.0; >> float shippingRate = 0.0; >> float shippingCharges = 0.0; >> * bool output = true;* >> >> >> //Intro >> cout<<endl; >> cout<<"Thank you for shipping with The Fast Freight Company!!!\n\n"; >> >> >> //Prompt user for the weight of their package >> cout<<"Please enter the weight of your pacakge(in grams): "; >> cin>>weight; >> cout<<endl; >> if (weight <= 0 || weight > 20000) >> {cout<<"Please enter either a positive number or a weight of 20 >> kilograms or less for your package.\t\t"; >> *output == false;*} //use = sign here **instead of ==** >> >> //Prompt user for distance the package will travel >> cout<<"Please enter the distance the package will travel(in miles): "; >> cin>>distance; >> cout<<endl; >> if (distance < 10 || distance > 3000) >> {cout<<"We don't ship to distances of less then 10 miles or more >> then 3000 miles.\t\t"; >> * *output == false;*} // use = sign here instead of ==* >> >> >> //Evaluate weight input >> if (weight <= 2000) >> shippingRate = 1.10; >> else if (weight > 2000 && weight <= 6000) >> shippingRate = 2.20; >> else if (weight > 6000 && weight <= 10000) >> shippingRate = 3.70; >> else >> shippingRate = 4.80; >> >> //Evaluate distance input >> if (distance >= 10 && distance <= 500) >> distance = 500; >> else if (distance >= 501 && distance <=1000) >> distance = 1000; >> else if (distance >= 1001 && distance <= 1500) >> distance = 1500; >> else if (distance >= 1501 && distance <= 2000) >> distance = 2000; >> else if (distance >= 2001 && distance <= 2500) >> distance = 2500; >> else >> distance = 3000; >> //Perform the calculations shippingCharges = >> shippingRate * (distance/500); >> //Evaluate if output is needed >> //if (weight > 0 && weight <= 20000 && distance >= 10 && distance <= >> 3000) >> *if (output == true) * >> //Output shipping charges >> {cout<<fixed<<showpoint; >> cout<<"The total shipping charges for your package is >> $"<<setprecision(2)<<shippingCharges<<endl;} >> >> return 0; >> } >> >> When I enter 0 for both or just one prompt, the program still >> displays both the total shipping charges as $6.60 and the input >> validation message. >> When I uncomment out the *if (weight > 0 && weight <= 20000 && >> distance >= 10 && distance <= 3000) *line, it works just fine so I >> have to be using bool wrong somehow. >> >> Lloyd wrote: >> >>> //C does not have bool data type >>> enum >>> { >>> FALSE=0, >>> TRUE=1 >>> }; >>> >>> typedef int bool; >>> >>> int main() >>> { >>> bool a=TRUE; >>> } >>> >>> >>> On Mon, 2008-02-11 at 18:36 -0500, Shawn wrote: >>> >>>> Thanks, but the compiler is still saying 'TRUE' undeclared (first use >>>> this function) and points me to the line where I initialize it to TRUE >>>> at the beginning of my program. >>>> bool output = TRUE; >>>> >>>> I thought that as soon as you call bool, the compiler knows it's >>>> either going to be true or false? >>>> pepone.onrez wrote: >>>>> dev...@li... >>>>> >>>>> On Feb 12, 2008 12:09 AM, Shawn <tre...@gm...> wrote:> >>>>> >>>>>> but then what would I put just before the total shipping charges >>>>>> >>>>> line so it wouldn't print? >>>>> if(output == TRUE){ >>>>> //output is TRUE to what you whan >>>>> }else{ >>>>> >>>>> >>>>> } >>>>> >>>>> ------------------------------------------------------------------------- >>>>> >>>>> This SF.net email is sponsored by: Microsoft >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>> _______________________________________________ >>>>> 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: Microsoft >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>> >>>>> ____________________________________________________________________ >>>>> >>>>> _______________________________________________ >>>>> 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: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ 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 >>>> >>> ______________________________________ >>> Scanned and protected by Email scanner >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> 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 >>> >>> > > |
From: Mayank J. N. <ma...@in...> - 2008-02-13 11:59:08
|
Dear There is no problem with the bool data type. In the below code comparison operator has been used instead of assignment operator for changing the value of output variable. So in the below code value of output variable is never changed to false and during the conditional checking in the if statement it get its value as true. > ------------------------------ > > Message: 2 > Date: Tue, 12 Feb 2008 00:03:54 -0500 > From: Shawn <tre...@gm...> > Subject: Re: [Dev-C++] bool data type > To: ll...@cd... > Cc: dev...@li... > Message-ID: <47B...@gm...> > Content-Type: text/plain; charset="iso-8859-1" > > I'm working with C++ though, my book says that the bool data type is a > built-in type consisting of just two values, the constants true and false. > > I have the program compiling without error now, however, it still prints > the last statement even though I didn't enter valid data. > > int main() > { > > //Declare and initialize variables > float weight = 0.0; > float distance = 0.0; > float shippingRate = 0.0; > float shippingCharges = 0.0; > * bool output = true;* > > > //Intro > cout<<endl; > cout<<"Thank you for shipping with The Fast Freight Company!!!\n\n"; > > > //Prompt user for the weight of their package > cout<<"Please enter the weight of your pacakge(in grams): "; > cin>>weight; > cout<<endl; > if (weight <= 0 || weight > 20000) > {cout<<"Please enter either a positive number or a weight of 20 > kilograms or less for your package.\t\t"; > *output == false;*} //use = sign here **instead of ==** > > //Prompt user for distance the package will travel > cout<<"Please enter the distance the package will travel(in miles): "; > cin>>distance; > cout<<endl; > if (distance < 10 || distance > 3000) > {cout<<"We don't ship to distances of less then 10 miles or more > then 3000 miles.\t\t"; > * *output == false;*} // use = sign here instead of ==* > > > //Evaluate weight input > if (weight <= 2000) > shippingRate = 1.10; > else if (weight > 2000 && weight <= 6000) > shippingRate = 2.20; > else if (weight > 6000 && weight <= 10000) > shippingRate = 3.70; > else > shippingRate = 4.80; > > > //Evaluate distance input > if (distance >= 10 && distance <= 500) > distance = 500; > else if (distance >= 501 && distance <=1000) > distance = 1000; > else if (distance >= 1001 && distance <= 1500) > distance = 1500; > else if (distance >= 1501 && distance <= 2000) > distance = 2000; > else if (distance >= 2001 && distance <= 2500) > distance = 2500; > else > distance = 3000; > > > //Perform the calculations > shippingCharges = shippingRate * (distance/500); > > //Evaluate if output is needed > //if (weight > 0 && weight <= 20000 && distance >= 10 && distance <= 3000) > *if (output == true) * > //Output shipping charges > {cout<<fixed<<showpoint; > cout<<"The total shipping charges for your package is > $"<<setprecision(2)<<shippingCharges<<endl;} > > return 0; > } > > When I enter 0 for both or just one prompt, the program still displays > both the total shipping charges as $6.60 and the input validation message. > > When I uncomment out the *if (weight > 0 && weight <= 20000 && distance > >= 10 && distance <= 3000) *line, it works just fine so I have to be > using bool wrong somehow. > > Lloyd wrote: > >> //C does not have bool data type >> enum >> { >> FALSE=0, >> TRUE=1 >> }; >> >> typedef int bool; >> >> int main() >> { >> bool a=TRUE; >> } >> >> >> On Mon, 2008-02-11 at 18:36 -0500, Shawn wrote: >> >> >>> Thanks, but the compiler is still saying 'TRUE' undeclared (first use >>> this function) and points me to the line where I initialize it to TRUE >>> at the beginning of my program. >>> >>> bool output = TRUE; >>> >>> I thought that as soon as you call bool, the compiler knows it's >>> either going to be true or false? >>> >>> pepone.onrez wrote: >>> >>> >>>> dev...@li... >>>> >>>> On Feb 12, 2008 12:09 AM, Shawn <tre...@gm...> wrote:> >>>> >>>> >>>>> but then what would I put just before the total shipping charges >>>>> >>>>> >>>> line so it wouldn't print? >>>> if(output == TRUE){ >>>> //output is TRUE to what you whan >>>> }else{ >>>> >>>> >>>> } >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> 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: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> >>>> ____________________________________________________________________ >>>> >>>> _______________________________________________ >>>> 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: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ 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 >>> >>> >> ______________________________________ >> Scanned and protected by Email scanner >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> 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 >> >> >> -- _____________________________________________________________ Mayank Jain Nawal NIKSUN. ma...@in... http://www.niksun.com Tel: +91 124 231 6012 SCO 16 Sector 14 Mob: +91 981 839 0836 Gurgaon Haryana 122001 India _____________________________________________________________ |
From: Abilash S. M. <abi...@wi...> - 2008-02-13 09:11:17
|
Hi, Looks like u intended output = false instead of output == false The reason why you always get the o/p is because only true assignment statement was bool output = true; So the variable is always true and you always get the output. Abilash Sankar Mohan _____ From: dev...@li... [mailto:dev...@li...] On Behalf Of Shawn Sent: Tuesday, February 12, 2008 10:34 AM To: ll...@cd... Cc: dev...@li... Subject: Re: [Dev-C++] bool data type I'm working with C++ though, my book says that the bool data type is a built-in type consisting of just two values, the constants true and false. I have the program compiling without error now, however, it still prints the last statement even though I didn't enter valid data. int main() { //Declare and initialize variables float weight = 0.0; float distance = 0.0; float shippingRate = 0.0; float shippingCharges = 0.0; bool output = true; //Intro cout<<endl; cout<<"Thank you for shipping with The Fast Freight Company!!!\n\n"; //Prompt user for the weight of their package cout<<"Please enter the weight of your pacakge(in grams): "; cin>>weight; cout<<endl; if (weight <= 0 || weight > 20000) {cout<<"Please enter either a positive number or a weight of 20 kilograms or less for your package.\t\t"; output == false;} //Prompt user for distance the package will travel cout<<"Please enter the distance the package will travel(in miles): "; cin>>distance; cout<<endl; if (distance < 10 || distance > 3000) {cout<<"We don't ship to distances of less then 10 miles or more then 3000 miles.\t\t"; output == false;} //Evaluate weight input if (weight <= 2000) shippingRate = 1.10; else if (weight > 2000 && weight <= 6000) shippingRate = 2.20; else if (weight > 6000 && weight <= 10000) shippingRate = 3.70; else shippingRate = 4.80; //Evaluate distance input if (distance >= 10 && distance <= 500) distance = 500; else if (distance >= 501 && distance <=1000) distance = 1000; else if (distance >= 1001 && distance <= 1500) distance = 1500; else if (distance >= 1501 && distance <= 2000) distance = 2000; else if (distance >= 2001 && distance <= 2500) distance = 2500; else distance = 3000; //Perform the calculations shippingCharges = shippingRate * (distance/500); //Evaluate if output is needed //if (weight > 0 && weight <= 20000 && distance >= 10 && distance <= 3000) if (output == true) //Output shipping charges {cout<<fixed<<showpoint; cout<<"The total shipping charges for your package is $"<<setprecision(2)<<shippingCharges<<endl;} return 0; } When I enter 0 for both or just one prompt, the program still displays both the total shipping charges as $6.60 and the input validation message. When I uncomment out the if (weight > 0 && weight <= 20000 && distance >= 10 && distance <= 3000) line, it works just fine so I have to be using bool wrong somehow. Lloyd wrote: //C does not have bool data type enum { FALSE=0, TRUE=1 }; typedef int bool; int main() { bool a=TRUE; } On Mon, 2008-02-11 at 18:36 -0500, Shawn wrote: Thanks, but the compiler is still saying 'TRUE' undeclared (first use this function) and points me to the line where I initialize it to TRUE at the beginning of my program. bool output = TRUE; I thought that as soon as you call bool, the compiler knows it's either going to be true or false? pepone.onrez wrote: dev...@li... On Feb 12, 2008 12:09 AM, Shawn <mailto:tre...@gm...> <tre...@gm...> wrote:> but then what would I put just before the total shipping charges line so it wouldn't print? if(output == TRUE){ //output is TRUE to what you whan }else{ } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ____________________________________________________________________ _______________________________________________ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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 ______________________________________ Scanned and protected by Email scanner ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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 |
From: frederico s. <fre...@gm...> - 2008-02-12 17:37:31
|
Hello! I'm novice here. I from Brazil I have 16 years old nice day by |
From: Shawn <tre...@gm...> - 2008-02-12 05:04:00
|
I'm working with C++ though, my book says that the bool data type is a built-in type consisting of just two values, the constants true and false. I have the program compiling without error now, however, it still prints the last statement even though I didn't enter valid data. int main() { //Declare and initialize variables float weight = 0.0; float distance = 0.0; float shippingRate = 0.0; float shippingCharges = 0.0; * bool output = true;* //Intro cout<<endl; cout<<"Thank you for shipping with The Fast Freight Company!!!\n\n"; //Prompt user for the weight of their package cout<<"Please enter the weight of your pacakge(in grams): "; cin>>weight; cout<<endl; if (weight <= 0 || weight > 20000) {cout<<"Please enter either a positive number or a weight of 20 kilograms or less for your package.\t\t"; *output == false;*} //Prompt user for distance the package will travel cout<<"Please enter the distance the package will travel(in miles): "; cin>>distance; cout<<endl; if (distance < 10 || distance > 3000) {cout<<"We don't ship to distances of less then 10 miles or more then 3000 miles.\t\t"; *output == false;*} //Evaluate weight input if (weight <= 2000) shippingRate = 1.10; else if (weight > 2000 && weight <= 6000) shippingRate = 2.20; else if (weight > 6000 && weight <= 10000) shippingRate = 3.70; else shippingRate = 4.80; //Evaluate distance input if (distance >= 10 && distance <= 500) distance = 500; else if (distance >= 501 && distance <=1000) distance = 1000; else if (distance >= 1001 && distance <= 1500) distance = 1500; else if (distance >= 1501 && distance <= 2000) distance = 2000; else if (distance >= 2001 && distance <= 2500) distance = 2500; else distance = 3000; //Perform the calculations shippingCharges = shippingRate * (distance/500); //Evaluate if output is needed //if (weight > 0 && weight <= 20000 && distance >= 10 && distance <= 3000) *if (output == true) * //Output shipping charges {cout<<fixed<<showpoint; cout<<"The total shipping charges for your package is $"<<setprecision(2)<<shippingCharges<<endl;} return 0; } When I enter 0 for both or just one prompt, the program still displays both the total shipping charges as $6.60 and the input validation message. When I uncomment out the *if (weight > 0 && weight <= 20000 && distance >= 10 && distance <= 3000) *line, it works just fine so I have to be using bool wrong somehow. Lloyd wrote: > //C does not have bool data type > enum > { > FALSE=0, > TRUE=1 > }; > > typedef int bool; > > int main() > { > bool a=TRUE; > } > > > On Mon, 2008-02-11 at 18:36 -0500, Shawn wrote: > >> Thanks, but the compiler is still saying 'TRUE' undeclared (first use >> this function) and points me to the line where I initialize it to TRUE >> at the beginning of my program. >> >> bool output = TRUE; >> >> I thought that as soon as you call bool, the compiler knows it's >> either going to be true or false? >> >> pepone.onrez wrote: >> >>> dev...@li... >>> >>> On Feb 12, 2008 12:09 AM, Shawn <tre...@gm...> wrote:> >>> >>>> but then what would I put just before the total shipping charges >>>> >>> line so it wouldn't print? >>> if(output == TRUE){ >>> //output is TRUE to what you whan >>> }else{ >>> >>> >>> } >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> 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: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> >>> ____________________________________________________________________ >>> >>> _______________________________________________ >>> 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ 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 >> > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 > > |
From: Lloyd <ll...@cd...> - 2008-02-12 03:25:07
|
//C does not have bool data type enum { FALSE=0, TRUE=1 }; typedef int bool; int main() { bool a=TRUE; } On Mon, 2008-02-11 at 18:36 -0500, Shawn wrote: > Thanks, but the compiler is still saying 'TRUE' undeclared (first use > this function) and points me to the line where I initialize it to TRUE > at the beginning of my program. > > bool output = TRUE; > > I thought that as soon as you call bool, the compiler knows it's > either going to be true or false? > > pepone.onrez wrote: > > dev...@li... > > > > On Feb 12, 2008 12:09 AM, Shawn <tre...@gm...> wrote:> > > >but then what would I put just before the total shipping charges > > line so it wouldn't print? > > if(output == TRUE){ > > //output is TRUE to what you whan > > }else{ > > > > > > } > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > 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: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > ____________________________________________________________________ > > > > _______________________________________________ > > 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ 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 ______________________________________ Scanned and protected by Email scanner |
From: Shawn <tre...@gm...> - 2008-02-11 23:37:03
|
Thanks, but the compiler is still saying 'TRUE' undeclared (first use this function) and points me to the line where I initialize it to TRUE at the beginning of my program. bool output = TRUE; I thought that as soon as you call bool, the compiler knows it's either going to be true or false? pepone.onrez wrote: > dev...@li... > <mailto:dev...@li...> > > On Feb 12, 2008 12:09 AM, Shawn <tre...@gm... > <mailto:tre...@gm...>> wrote:> > >but then what would I put just before the total shipping charges line > so it wouldn't print? > if(output == TRUE){ > //output is TRUE to what you whan > }else{ > > > > } > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > <mailto: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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > 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 > |
From: pepone.onrez <pep...@gm...> - 2008-02-11 23:20:53
|
dev...@li... On Feb 12, 2008 12:09 AM, Shawn <tre...@gm...> wrote:> >but then what would I put just before the total shipping charges line so it wouldn't print? if(output == TRUE){ //output is TRUE to what you whan }else{ > } > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 > |
From: Shawn <tre...@gm...> - 2008-02-11 23:10:12
|
This is the first time that I'm trying to use C's build in data type for true/false and I'm having some problems. Basically, I'm trying to use bool to keep the program from displaying results if invalid data is entered. if (weight <= 0 || weight > 20000) cout<<"Please enter either a positive number or a weight of 20 kilograms or less for your package.\t\t"; if (distance < 10 || distance > 3000) cout<<"We don't ship to distances of less then 10 miles or more then 3000 miles.\t\t"; If this is the case and they do enter invalid data, I want bool to stop the output of the program from printing on screen, I just want the program to tell the user that they need to enter the right information as prompted above. cout<<"The total shipping charges for your package is $"<<setprecision(2)<<shippingCharges<<endl; What's the best way to go about this? I was thinking of declaring bool output = True in the beginning of the program and then right after those two input validation statements set output = false, but then what would I put just before the total shipping charges line so it wouldn't print? Also, I'm having problems setting output = false, it says false is undeclared. I thought bool was a built in true/false data type? thx |
From: rodolfo d'E. <rod...@ho...> - 2008-02-11 05:25:09
|
Hi, There is a Windows Api function called Sleep : Declare: //sleep Subroutine Sleep( long dwMilliseconds ) Library "kernel32.dll" Execution: //sleep process for 1 second Sleep(1000) Notice the capital S in Sleep. Cheers Rodolfo d'Ettorre ________________________________ Date: Sun, 10 Feb 2008 20:54:52 -0800 From: hus...@ya... To: dev...@li... Subject: [Dev-C++] Time Delay Hi, I am using Dev C++. I want to know that how to use time delay function in Dev C++. I am doing my assignment please make it hurry. Husnain Raza. ________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. _________________________________________________________________ Your Future Starts Here. Dream it? Then be it! Find it at www.seek.com.au http://a.ninemsn.com.au/b.aspx?URL=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fninemsn%2Eseek%2Ecom%2Eau%2F%3Ftracking%3Dsk%3Ahet%3Ask%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=OCT07_endtext_Future&_m=EXT |
From: Eric <eri...@wo...> - 2008-02-11 05:04:56
|
----- Original Message ----- Sent: Monday, February 11, 2008 6:06 PM Subject: Re: [Dev-C++] Time Delay What have you got so far? CONVERTED TO PLAIN TEXT FORMAT TO SAVE INTERNET BANDWIDTH THAT IS GETTING NICKED BY EVERYONE DOWNLOADING MOVIES. & ALSO SAVE SPACE ON YOUR HARD DRIVE NOT TOO MENTION ............ ----- Original Message ----- From: paki tiger To: dev...@li... Sent: Sunday, February 10, 2008 8:54 PM Subject: [Dev-C++] Time Delay Hi, I am using Dev C++. I want to know that how to use time delay function in Dev C++. I am doing my assignment please make it hurry. Husnain Raza. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.0/1268 - Release Date: 2/9/08 11:54 AM |
From: paki t. <hus...@ya...> - 2008-02-11 04:55:00
|
Hi, I am using Dev C++. I want to know that how to use time delay function in Dev C++. I am doing my assignment please make it hurry. Husnain Raza. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs |
From: <ta...@fe...> - 2008-01-27 16:55:48
|
------------------------------------------------------------------------ -------------------------------------------------------- (Apologies for cross-posting) Workshop =93Medical Imaging Systems=94 within EUROSIS EUROMEDIA 2008 April 9-11, 2008, University of Porto, Porto, Portugal http://www.eurosis.org/cms/index.php?q=3Dnode/461 We would appreciate if you could distribute this information by your colleagues and co-workers. ------------------------------------------------------------------------ -------------------------------------------------------- Dear Colleague, In recent years, extensive research has been performed to develop more and more efficient and powerful medical imaging systems. Such systems are crucial for medical specialists, allowing a deeper analysis and to understand what is going inside the human body, and therefore they play an essential role for adequate medical diagnosis and treatments. To accomplish efficient and powerful medical imaging systems, many research works have being done in many domains, like the ones related with medical image devices, signal processing, image processing and analysis, biomechanical simulation and data visualization. The main goal of the Workshop =93Medical Imaging Systems=94 is to bring together researchers involved in the related domains, in order to set the major lines of development for the near future. Therefore, the proposed Workshop will consist of researchers representing various fields related to Medical Devices, Signal Processing, Computational Vision, Computer Graphics, Computational Mechanics, Scientific Visualization, Mathematics and Medical Imaging. The Workshop endeavours to contribute to obtain better solutions for more efficient and powerful medical imaging systems, and attempts to establish a bridge between clinicians and researchers from these diverse fields. The proposed Workshop will cover topics related with medical imaging systems, such as: image acquisition, signal processing, image processing and analysis, modelling and simulation, computer aided diagnosis, surgery, therapy, and treatment, computational bioimaging and visualization, software development, virtual reality and telemedicine systems and their applications. Due to your research activities in the field, we would like to invite you to submit a contributed paper. Your contribution is mostly welcomed and we would be honoured if you could participate in EUROMEDIA 2008. DEADLINE FOR PAPERS SUBMISSION: February 5, 2008 SCIENTIFIC COMMITTEE: Alberto De Santis, Universit=E0 degli Studi di Roma "La Sapienza", Italy Ana Mafalda Reis, Instituto de Ci=EAncias Biom=E9dicas Abel Salazar, Portugal Arrate Mu=F1oz Barrutia, University of Navarra, Spain Behnam Heidari, University College Dublin, Ireland Bernard Gosselin, Faculte Polytechnique de Mons, Belgium Chandrajit Bajaj, University of Texas, USA Christos E. Constantinou, Stanford University School of Medicine, USA Daniela Iacoviello, Universit=E0 degli Studi di Roma "La Sapienza", = Italy Dinggang Shen, University of Pennsylvania, USA Djemel Ziou, University of Sherbrooke, Canada Gerald Schaefer, Aston University, UK Jo=E3o Krug Noronha, Dr. Krug Noronha Clinic, Portugal Jo=E3o Manuel R. S. Tavares, Faculty of Engineering of University of Porto, Portugal Jo=E3o Paulo Costeira, Instituto Superior T=E9cnico, Portugal Jorge M. G. Barbosa, Faculty of Engineering of University of Porto, Portugal Lyuba Alboul, Sheffield Hallam University, UK Manuel Gonz=E1lez Hidalgo, Balearic Islands University, Spain Maria Elizete Kunkel, Universit=E4t Ulm, Germany M=E1rio Forjaz Secca, Universidade Nova de Lisboa, Portugal Miguel Angel L=F3pez, Faculty University of Ciego de Avila, Cuba Miguel Velhote Correia, Faculty of Engineering of University of Porto, Portugal Patrick Dubois, Institut de Technologie M=E9dicale, France Reneta Barneva, State University of New York, USA Renato M. Natal Jorge, Faculty of Engineering of University of Porto, Portugal Sabina Tangaro, University of Bari, Italy Valentin Brimkov, State University of New York, USA Yongjie Zhan, Carnegie Mellon University, USA For further details please see the conference website at: http://www.eurosis.org/cms/index.php?q=3Dnode/461 We are looking forward to see you in Porto next April. Kind regards, Jo=E3o Manuel R. S. Tavares University of Porto ta...@fe... www.fe.up.pt/~tavares 1 =20 =20 |
From: <ta...@fe...> - 2008-01-27 16:49:49
|
------------------------------------------------------------------------ -------------------------------------------------------- (Apologies for cross-posting) Workshop =93Medical Imaging Systems=94 within EUROSIS EUROMEDIA 2008 April 9-11, 2008, University of Porto, Porto, Portugal http://www.eurosis.org/cms/index.php?q=3Dnode/461 We would appreciate if you could distribute this information by your colleagues and co-workers. ------------------------------------------------------------------------ -------------------------------------------------------- Dear Colleague, In recent years, extensive research has been performed to develop more and more efficient and powerful medical imaging systems. Such systems are crucial for medical specialists, allowing a deeper analysis and to understand what is going inside the human body, and therefore they play an essential role for adequate medical diagnosis and treatments. To accomplish efficient and powerful medical imaging systems, many research works have being done in many domains, like the ones related with medical image devices, signal processing, image processing and analysis, biomechanical simulation and data visualization. The main goal of the Workshop =93Medical Imaging Systems=94 is to bring together researchers involved in the related domains, in order to set the major lines of development for the near future. Therefore, the proposed Workshop will consist of researchers representing various fields related to Medical Devices, Signal Processing, Computational Vision, Computer Graphics, Computational Mechanics, Scientific Visualization, Mathematics and Medical Imaging. The Workshop endeavours to contribute to obtain better solutions for more efficient and powerful medical imaging systems, and attempts to establish a bridge between clinicians and researchers from these diverse fields. The proposed Workshop will cover topics related with medical imaging systems, such as: image acquisition, signal processing, image processing and analysis, modelling and simulation, computer aided diagnosis, surgery, therapy, and treatment, computational bioimaging and visualization, software development, virtual reality and telemedicine systems and their applications. Due to your research activities in the field, we would like to invite you to submit a contributed paper. Your contribution is mostly welcomed and we would be honoured if you could participate in EUROMEDIA 2008. DEADLINE FOR PAPERS SUBMISSION: February 5, 2008 SCIENTIFIC COMMITTEE: Alberto De Santis, Universit=E0 degli Studi di Roma "La Sapienza", Italy Ana Mafalda Reis, Instituto de Ci=EAncias Biom=E9dicas Abel Salazar, Portugal Arrate Mu=F1oz Barrutia, University of Navarra, Spain Behnam Heidari, University College Dublin, Ireland Bernard Gosselin, Faculte Polytechnique de Mons, Belgium Chandrajit Bajaj, University of Texas, USA Christos E. Constantinou, Stanford University School of Medicine, USA Daniela Iacoviello, Universit=E0 degli Studi di Roma "La Sapienza", = Italy Dinggang Shen, University of Pennsylvania, USA Djemel Ziou, University of Sherbrooke, Canada Gerald Schaefer, Aston University, UK Jo=E3o Krug Noronha, Dr. Krug Noronha Clinic, Portugal Jo=E3o Manuel R. S. Tavares, Faculty of Engineering of University of Porto, Portugal Jo=E3o Paulo Costeira, Instituto Superior T=E9cnico, Portugal Jorge M. G. Barbosa, Faculty of Engineering of University of Porto, Portugal Lyuba Alboul, Sheffield Hallam University, UK Manuel Gonz=E1lez Hidalgo, Balearic Islands University, Spain Maria Elizete Kunkel, Universit=E4t Ulm, Germany M=E1rio Forjaz Secca, Universidade Nova de Lisboa, Portugal Miguel Angel L=F3pez, Faculty University of Ciego de Avila, Cuba Miguel Velhote Correia, Faculty of Engineering of University of Porto, Portugal Patrick Dubois, Institut de Technologie M=E9dicale, France Reneta Barneva, State University of New York, USA Renato M. Natal Jorge, Faculty of Engineering of University of Porto, Portugal Sabina Tangaro, University of Bari, Italy Valentin Brimkov, State University of New York, USA Yongjie Zhan, Carnegie Mellon University, USA For further details please see the conference website at: http://www.eurosis.org/cms/index.php?q=3Dnode/461 We are looking forward to see you in Porto next April. Kind regards, Jo=E3o Manuel R. S. Tavares University of Porto ta...@fe... www.fe.up.pt/~tavares 1 =20 =20 |
From: Jessica C. <jes...@gm...> - 2008-01-24 20:32:25
|
I have a sample code about registry. It is not the function what u wanted. But hope, it can still help you to understand the registry. // QueryKey - Enumerates the subkeys of key and its associated values. // hKey - Key whose subkeys and values are to be enumerated. #include <windows.h> #include <stdio.h> #include <tchar.h> #define MAX_KEY_LENGTH 255 #define MAX_VALUE_NAME 16383 void QueryKey(HKEY hKey) { TCHAR achKey[MAX_KEY_LENGTH]; // buffer for subkey name DWORD cbName; // size of name string TCHAR achClass[MAX_PATH] = TEXT(""); // buffer for class name DWORD cchClassName = MAX_PATH; // size of class string DWORD cSubKeys=0; // number of subkeys DWORD cbMaxSubKey; // longest subkey size DWORD cchMaxClass; // longest class string DWORD cValues; // number of values for key DWORD cchMaxValue; // longest value name DWORD cbMaxValueData; // longest value data DWORD cbSecurityDescriptor; // size of security descriptor FILETIME ftLastWriteTime; // last write time DWORD i, retCode; TCHAR achValue[MAX_VALUE_NAME]; DWORD cchValue = MAX_VALUE_NAME; // Get the class name and the value count. retCode = RegQueryInfoKey( hKey, // key handle achClass, // buffer for class name &cchClassName, // size of class string NULL, // reserved &cSubKeys, // number of subkeys &cbMaxSubKey, // longest subkey size &cchMaxClass, // longest class string &cValues, // number of values for this key &cchMaxValue, // longest value name &cbMaxValueData, // longest value data &cbSecurityDescriptor, // security descriptor &ftLastWriteTime); // last write time // Enumerate the subkeys, until RegEnumKeyEx fails. if (cSubKeys) { printf( "\nNumber of subkeys: %d\n", cSubKeys); for (i=0; i<cSubKeys; i++) { cbName = MAX_KEY_LENGTH; retCode = RegEnumKeyEx(hKey, i, achKey, &cbName, NULL, NULL, NULL, &ftLastWriteTime); if (retCode == ERROR_SUCCESS) { _tprintf(TEXT("(%d) %s\n"), i+1, achKey); } } } // Enumerate the key values. if (cValues) { printf( "\nNumber of values: %d\n", cValues); for (i=0, retCode=ERROR_SUCCESS; i<cValues; i++) { cchValue = MAX_VALUE_NAME; achValue[0] = '\0'; retCode = RegEnumValue(hKey, i, achValue, &cchValue, NULL, NULL, NULL, NULL); if (retCode == ERROR_SUCCESS ) { _tprintf(TEXT("(%d) %s\n"), i+1, achValue); } } } } int _tmain(void) { HKEY hTestKey; if( RegOpenKeyEx( HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft"), 0, KEY_READ, &hTestKey) == ERROR_SUCCESS ) { QueryKey(hTestKey); } return 0; } On Jan 24, 2008 12:40 PM, Ben Melikant <ili...@at...> wrote: > Hello all. I recently looked up usage of registry functions to use the > Windows registry to automatically start a program. I decided to make > some test applications to practice using them. This is the code I have > to get the default value of registry key HKEY_LOCAL_MACHINE: > > #include <windows.h> > #include <iostream> > > using namespace std; > > int main () > { > LPDWORD retType; > LPBYTE retDat; > > RegQueryValueEx (HKEY_LOCAL_MACHINE, > "", > NULL, > retType, > retDat, > 20); > > cout << retType; > cout << retDat; > > return 0; > } > > This program compiles fine, but when i run it windows terminates it with > an error message. If anyone would like to see the error message, i can > get it. If anyone can possibly come up with an explanation as to why I'm > coming up with a system error, please help! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 > |
From: Per W. <pw...@ia...> - 2008-01-24 17:43:18
|
One installation packet only contain the IDE. This packet is intended for people who already have the MinGW tools. The other installation packet contains both gcc and the IDE. It sounds like you have installed the version without any compiler. /pwm On Fri, 25 Jan 2008, Eric wrote: > When I installed the program version 4.9...... it some GNU was not in the > path satement > > > And you get it, my code will not compile. > I tried something in the autoexec.bat file but then my computer win98se > would not reboat and that caused a bit drama > > > (1) I had a look in program folder and could not see any > read-me-get-it-working.txt files > (2) I had a look in the help files and there was no help on "PATH" > > I wonder what sun netbeans is likem I will have to go back to windows XP? > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 > |
From: Ben M. <ili...@at...> - 2008-01-24 17:38:01
|
Hello all. I recently looked up usage of registry functions to use the Windows registry to automatically start a program. I decided to make some test applications to practice using them. This is the code I have to get the default value of registry key HKEY_LOCAL_MACHINE: #include <windows.h> #include <iostream> using namespace std; int main () { LPDWORD retType; LPBYTE retDat; RegQueryValueEx (HKEY_LOCAL_MACHINE, "", NULL, retType, retDat, 20); cout << retType; cout << retDat; return 0; } This program compiles fine, but when i run it windows terminates it with an error message. If anyone would like to see the error message, i can get it. If anyone can possibly come up with an explanation as to why I'm coming up with a system error, please help! |
From: Eric <eri...@wo...> - 2008-01-24 17:27:40
|
When I installed the program version 4.9...... it some GNU was not in the path satement And you get it, my code will not compile. I tried something in the autoexec.bat file but then my computer win98se would not reboat and that caused a bit drama (1) I had a look in program folder and could not see any read-me-get-it-working.txt files (2) I had a look in the help files and there was no help on "PATH" I wonder what sun netbeans is likem I will have to go back to windows XP? |
From: Jessica C. <jes...@gm...> - 2008-01-23 22:39:32
|
1. I added the files into project. Those files are from different folders. Now the dev-cpp can only display the name of files. Is there any setting can let it show folders and files in their levels. 2. I compiled my code under "console", and got *.exe file. When I click the application file *.exe, it give me the GUI and that console (which looks like Dos window) quickly. But when I run the application file *.exe on my colleague's computer, it seems the GUI came out much later than the console window. And I can see that in the console window, the programs running well, just the GUI window came out too late (around after 5-10 seconds). What is the problem? The problem from (1) my code itself (2) dev-cpp tools (3) computer configuration? My computer and my colleague's computer both use: Microsoft Windows XP Professional My colleague's computer:Processor 1.80GHz; 1.79GHz, 1.25 GB of RAM Mine: Processor Pentium CPU 3.40GHz; 3.39 GHz, 0.98 GB of RAM |
From: shan c. <sha...@ya...> - 2008-01-22 14:18:26
|
I am a newbie to "windows programming environment in c++",I have to make an on-screen keyboard. I dont know how to do draw the exact layout of keyboard in Visual C++. Any help? hey man go rocking --------------------------------- Save all your chat conversations. Find them online. |
From: Wobien <roo...@pl...> - 2008-01-21 15:38:13
|
ver 1.0 of Code::Blocks is a very old version. In the forum Nightly builds you will find the more recent versions and an instruction how to install it. (they bring out a new one every few days) regards, wobien ----- Original Message ----- From: "Meyrambek Japarov" <mey...@ya...> To: "Wobien Doyer" <wo...@pl...> Sent: Monday, January 21, 2008 11:16 AM Subject: Re: [Dev-C++] Debugging and watch >I download codeblock ver 1.0 release candiadate 2 > it shows watch variable but it doesn't debug. (going > step by step) > when i press f8 it reads input and automtically > clculates the result without stop, and so it doesn't > show the result in watch variables. > > may be i must change in smt in settings. > > --- Wobien Doyer <wo...@pl...> wrote: > >> For me debugging in Dev-C++ never worked very well. >> I now downloaded and use Code::Blocks, and debugging >> works fine. >> Look on www.codeblocks.org, go to the forums and >> look in the forum Nightly >> builds. >> >> ----- Original Message ----- >> From: "Meyrambek Japarov" <mey...@ya...> >> To: <dev...@li...> >> Sent: Sunday, January 20, 2008 3:02 PM >> Subject: [Dev-C++] Debugging and watch >> >> >> > Hi all >> > >> > I want to debug and use watch. >> > But dev cpp is not showing watch. >> > What i must do? >> > >> > >> > >> > --- dev...@li... >> wrote: >> > >> >> 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. Translation (Szentpali Janos) >> >> 2. Re: Translation (Wobien) >> >> 3. Re: Translation (Szentpali Janos) >> >> 4. read registry (com1, com7) problem (Jessica >> >> Chen) >> >> 5. how to display the bitmap in win32 opengl? >> >> (Jessica Chen) >> >> 6. Using the serial and the parallel Port of >> the >> >> Computer >> >> (Abhijeet mishra) >> >> 7. Please forward me Some links (using the >> serial >> >> and par port ) >> >> (Abhijeet mishra) >> >> >> >> >> >> >> > >> > ---------------------------------------------------------------------- >> >> >> >> Message: 1 >> >> Date: Mon, 07 Jan 2008 19:32:02 +0200 >> >> From: Szentpali Janos <ia...@ea...> >> >> Subject: [Dev-C++] Translation >> >> To: dev...@li... >> >> Message-ID: <478...@ea...> >> >> Content-Type: text/plain; charset=ISO-8859-2; >> >> format=flowed >> >> >> >> Hi, >> >> >> >> I am very new to C++. I only did VB >> programming... >> >> mostly. I am having >> >> some trouble with some C++ code. Could someone >> help >> >> me understand what >> >> the following means: >> >> >> >> --- start --- >> >> >> >> typedef DWORD(*FUNCPTR)(BYTE); >> >> >> >> DWORD ulWorkRandomNum; >> >> char *arr; >> >> int nIndex; >> >> >> >> ... >> >> >> >> arr [2 * nIndex] = 'A' + (((char *) >> &ulRandomNum) >> >> [nIndex] & 0x0f); >> >> >> >> --- end --- >> >> >> >> I am having trouble with "translating" >> >> (understanding) the >> >> >> >> ((char *) &ulRandomNum) [nIndex] >> >> >> >> part. I mean [nIndex] referes to the elemnt of >> which >> >> array :O >> >> >> >> -- >> >> Szentp?li J?nos >> >> >> >> >> >> >> >> >> >> ------------------------------ >> >> >> >> Message: 2 >> >> Date: Mon, 7 Jan 2008 23:07:00 +0100 >> >> From: "Wobien" <roo...@pl...> >> >> Subject: Re: [Dev-C++] Translation >> >> To: "Szentpali Janos" <ia...@ea...>, >> >> <dev...@li...> >> >> Message-ID: <000301c85179$a07d2d70$9700000a@dell> >> >> Content-Type: text/plain; format=flowed; >> >> charset="iso-8859-2"; >> >> reply-type=original >> >> >> >> &ulRandomNum is the adress of ulRandomNum (You >> don't >> >> give us the definition >> >> of it, so don't know what it is) >> >> (char *) is a cast. It makes the adress of >> >> ulRandomNum be read as a char >> >> array. So ((char *) &ulRandomNum) [nIndex] >> >> will give you a byte of the binary code of >> >> ulRandomNum. >> >> Wobien >> >> >> >> ----- Original Message ----- >> >> From: "Szentpali Janos" <ia...@ea...> >> >> To: <dev...@li...> >> >> Sent: Monday, January 07, 2008 6:32 PM >> >> Subject: [Dev-C++] Translation >> >> >> >> >> >> Hi, >> >> >> >> I am very new to C++. I only did VB >> programming... >> >> mostly. I am having >> >> some trouble with some C++ code. Could someone >> help >> >> me understand what >> >> the following means: >> >> >> >> --- start --- >> >> >> >> typedef DWORD(*FUNCPTR)(BYTE); >> >> >> >> DWORD ulWorkRandomNum; >> >> char *arr; >> >> int nIndex; >> >> >> >> ... >> >> >> >> arr [2 * nIndex] = 'A' + (((char *) >> &ulRandomNum) >> >> [nIndex] & 0x0f); >> >> >> >> --- end --- >> >> >> >> I am having trouble with "translating" >> >> (understanding) the >> >> >> >> ((char *) &ulRandomNum) [nIndex] >> >> >> >> part. I mean [nIndex] referes to the elemnt of >> which >> >> array :O >> >> >> >> -- >> >> Szentp?li J?nos >> >> >> >> >> >> >> > >> > ------------------------------------------------------------------------- >> >> Check out the new SourceForge.net Marketplace. >> >> It's the best place to buy or sell services for >> >> just about anything Open Source. >> >> >> > >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> > === message truncated === > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > |
From: shan c. <sha...@ya...> - 2008-01-20 16:46:09
|
Use F8 to debug and F7 to watch execution per line.In the left side Project/class browser right click and select "add watch" enter the variable name in the pop window and click OK add as much as variable your program has. Happy Debugging!!!! Meyrambek Japarov <mey...@ya...> wrote: Hi all I want to debug and use watch. But dev cpp is not showing watch. What i must do? --- dev...@li... wrote: > 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. Translation (Szentpali Janos) > 2. Re: Translation (Wobien) > 3. Re: Translation (Szentpali Janos) > 4. read registry (com1, com7) problem (Jessica > Chen) > 5. how to display the bitmap in win32 opengl? > (Jessica Chen) > 6. Using the serial and the parallel Port of the > Computer > (Abhijeet mishra) > 7. Please forward me Some links (using the serial > and par port ) > (Abhijeet mishra) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 07 Jan 2008 19:32:02 +0200 > From: Szentpali Janos > Subject: [Dev-C++] Translation > To: dev...@li... > Message-ID: <478...@ea...> > Content-Type: text/plain; charset=ISO-8859-2; > format=flowed > > Hi, > > I am very new to C++. I only did VB programming... > mostly. I am having > some trouble with some C++ code. Could someone help > me understand what > the following means: > > --- start --- > > typedef DWORD(*FUNCPTR)(BYTE); > > DWORD ulWorkRandomNum; > char *arr; > int nIndex; > > ... > > arr [2 * nIndex] = 'A' + (((char *) &ulRandomNum) > [nIndex] & 0x0f); > > --- end --- > > I am having trouble with "translating" > (understanding) the > > ((char *) &ulRandomNum) [nIndex] > > part. I mean [nIndex] referes to the elemnt of which > array :O > > -- > Szentp?li J?nos > > > > > ------------------------------ > > Message: 2 > Date: Mon, 7 Jan 2008 23:07:00 +0100 > From: "Wobien" > Subject: Re: [Dev-C++] Translation > To: "Szentpali Janos" , > > Message-ID: <000301c85179$a07d2d70$9700000a@dell> > Content-Type: text/plain; format=flowed; > charset="iso-8859-2"; > reply-type=original > > &ulRandomNum is the adress of ulRandomNum (You don't > give us the definition > of it, so don't know what it is) > (char *) is a cast. It makes the adress of > ulRandomNum be read as a char > array. So ((char *) &ulRandomNum) [nIndex] > will give you a byte of the binary code of > ulRandomNum. > Wobien > > ----- Original Message ----- > From: "Szentpali Janos" > To: > Sent: Monday, January 07, 2008 6:32 PM > Subject: [Dev-C++] Translation > > > Hi, > > I am very new to C++. I only did VB programming... > mostly. I am having > some trouble with some C++ code. Could someone help > me understand what > the following means: > > --- start --- > > typedef DWORD(*FUNCPTR)(BYTE); > > DWORD ulWorkRandomNum; > char *arr; > int nIndex; > > ... > > arr [2 * nIndex] = 'A' + (((char *) &ulRandomNum) > [nIndex] & 0x0f); > > --- end --- > > I am having trouble with "translating" > (understanding) the > > ((char *) &ulRandomNum) [nIndex] > > part. I mean [nIndex] referes to the elemnt of which > array :O > > -- > Szentp?li J?nos > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > 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 > Date: Tue, 08 Jan 2008 00:24:17 +0200 > From: Szentpali Janos > Subject: Re: [Dev-C++] Translation > To: Wobien , > dev...@li... > Message-ID: <478...@ea...> > Content-Type: text/plain; charset=ISO-8859-2; > format=flowed > > Wobien ?rta: > > &ulRandomNum is the adress of ulRandomNum (You > don't give us the > > definition of it, so don't know what it is) > > (char *) is a cast. It makes the adress of > ulRandomNum be read as a > > char array. So ((char *) &ulRandomNum) [nIndex] > > will give you a byte of the binary code of > ulRandomNum. > > Wobien > > > > ----- Original Message ----- From: "Szentpali > Janos" > > To: > > Sent: Monday, January 07, 2008 6:32 PM > > Subject: [Dev-C++] Translation > > > > > > Hi, > > > > I am very new to C++. I only did VB programming... > mostly. I am having > > some trouble with some C++ code. Could someone > help me understand what > === message truncated === ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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 hey man go rocking --------------------------------- Now you can chat without downloading messenger. Click here to know how. |
From: Meyrambek J. <mey...@ya...> - 2008-01-20 14:02:17
|
Hi all I want to debug and use watch. But dev cpp is not showing watch. What i must do? --- dev...@li... wrote: > 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. Translation (Szentpali Janos) > 2. Re: Translation (Wobien) > 3. Re: Translation (Szentpali Janos) > 4. read registry (com1, com7) problem (Jessica > Chen) > 5. how to display the bitmap in win32 opengl? > (Jessica Chen) > 6. Using the serial and the parallel Port of the > Computer > (Abhijeet mishra) > 7. Please forward me Some links (using the serial > and par port ) > (Abhijeet mishra) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 07 Jan 2008 19:32:02 +0200 > From: Szentpali Janos <ia...@ea...> > Subject: [Dev-C++] Translation > To: dev...@li... > Message-ID: <478...@ea...> > Content-Type: text/plain; charset=ISO-8859-2; > format=flowed > > Hi, > > I am very new to C++. I only did VB programming... > mostly. I am having > some trouble with some C++ code. Could someone help > me understand what > the following means: > > --- start --- > > typedef DWORD(*FUNCPTR)(BYTE); > > DWORD ulWorkRandomNum; > char *arr; > int nIndex; > > ... > > arr [2 * nIndex] = 'A' + (((char *) &ulRandomNum) > [nIndex] & 0x0f); > > --- end --- > > I am having trouble with "translating" > (understanding) the > > ((char *) &ulRandomNum) [nIndex] > > part. I mean [nIndex] referes to the elemnt of which > array :O > > -- > Szentp?li J?nos > > > > > ------------------------------ > > Message: 2 > Date: Mon, 7 Jan 2008 23:07:00 +0100 > From: "Wobien" <roo...@pl...> > Subject: Re: [Dev-C++] Translation > To: "Szentpali Janos" <ia...@ea...>, > <dev...@li...> > Message-ID: <000301c85179$a07d2d70$9700000a@dell> > Content-Type: text/plain; format=flowed; > charset="iso-8859-2"; > reply-type=original > > &ulRandomNum is the adress of ulRandomNum (You don't > give us the definition > of it, so don't know what it is) > (char *) is a cast. It makes the adress of > ulRandomNum be read as a char > array. So ((char *) &ulRandomNum) [nIndex] > will give you a byte of the binary code of > ulRandomNum. > Wobien > > ----- Original Message ----- > From: "Szentpali Janos" <ia...@ea...> > To: <dev...@li...> > Sent: Monday, January 07, 2008 6:32 PM > Subject: [Dev-C++] Translation > > > Hi, > > I am very new to C++. I only did VB programming... > mostly. I am having > some trouble with some C++ code. Could someone help > me understand what > the following means: > > --- start --- > > typedef DWORD(*FUNCPTR)(BYTE); > > DWORD ulWorkRandomNum; > char *arr; > int nIndex; > > ... > > arr [2 * nIndex] = 'A' + (((char *) &ulRandomNum) > [nIndex] & 0x0f); > > --- end --- > > I am having trouble with "translating" > (understanding) the > > ((char *) &ulRandomNum) [nIndex] > > part. I mean [nIndex] referes to the elemnt of which > array :O > > -- > Szentp?li J?nos > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > 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 > Date: Tue, 08 Jan 2008 00:24:17 +0200 > From: Szentpali Janos <ia...@ea...> > Subject: Re: [Dev-C++] Translation > To: Wobien <roo...@pl...>, > dev...@li... > Message-ID: <478...@ea...> > Content-Type: text/plain; charset=ISO-8859-2; > format=flowed > > Wobien ?rta: > > &ulRandomNum is the adress of ulRandomNum (You > don't give us the > > definition of it, so don't know what it is) > > (char *) is a cast. It makes the adress of > ulRandomNum be read as a > > char array. So ((char *) &ulRandomNum) [nIndex] > > will give you a byte of the binary code of > ulRandomNum. > > Wobien > > > > ----- Original Message ----- From: "Szentpali > Janos" <ia...@ea...> > > To: <dev...@li...> > > Sent: Monday, January 07, 2008 6:32 PM > > Subject: [Dev-C++] Translation > > > > > > Hi, > > > > I am very new to C++. I only did VB programming... > mostly. I am having > > some trouble with some C++ code. Could someone > help me understand what > === message truncated === ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |