dev-cpp-users Mailing List for Dev-C++ (Page 207)
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: David M. <dml...@co...> - 2004-06-21 15:26:09
|
If I have a class B that inherets from a class A and I create an object of type B (call it instance_B). when instance_B is destroyed is the destructor for class A also called? If so does the same thing happen for constructors? |
|
From: Scott S. <age...@co...> - 2004-06-21 14:25:48
|
Its just virus spam. A lot of spammers use e-mail addresses of others to spread viruses over e-mail. That is what's happening here. PETER CAMPOS wrote: > VIRUS ALERT: I RECEIVED THIS EARLIER: > >> From: <adm...@yd...> >> To: <adm...@yd...>, <dev...@li...> >> Subject: [Dev-C++] McAfee GroupShield Alert >> Date: Mon, 21 Jun 2004 04:34:52 +0200 >> >> McAfee GroupShield™ Alert >> >> McAfee GroupShield discovered a problem with the following email. See >> your system administrator for further information. >> >> Date/Time sent: 21 jun 2004 04:34:51 >> Subject line: [Dev-C++] failure notice >> From: dev...@li... >> To: dev...@li... >> Action taken: Deleted >> Virus: W32/Netsky.y@MM >> >> >> Copyright © 1993-2003, Networks Associates Technology, Inc. >> All Rights Reserved. >> http://www.mcafeesecurity.com <http://www.mcafeesecurity.com/> >> >> >> -------------------------------------------------------------------------------------- >> >> This message and any files transmitted with it are confidential and >> intended solely >> for the use of the individual or entity to whom they are addressed. >> No confidentiality >> or privilege is waived or lost by any wrong transmission. >> If you have received this message in error, please immediately >> destroy it and kindly >> notify the sender by reply email. >> You must not, directly or indirectly, use, disclose, distribute, >> print, or copy any >> part of this message if you are not the intended recipient. Opinions, >> conclusions and >> other information in this message that do not relate to the official >> business of >> Ydilo Advanced Voice Solutions, S.A. shall be understood as neither >> given nor endorsed by it. >> -------------------------------------------------------------------------------------- >> > > > _________________________________________________________________ > >> From ‘will you?’ to ‘I do,’ MSN Life Events is your resource for Getting > > Married. http://lifeevents.msn.com/category.aspx?cid=married > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > 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: Zodiaq <zo...@as...> - 2004-06-21 07:23:56
|
Hello Noorez and all Dev-C++ users,
Monday, June 21, 2004, 5:24:58 AM, Noorez wrote as follows:
NK> My program creates files and the names are what ever the user says. How can
NK> I test to see if a file already exists?
Duh, sample from Platform SDK:
HANDLE hFile;
char *szFileName;//this is the file name you want to check
...
...
BOOL bFileExists = TRUE;
hFile = CreateFile(szFileName, // open some file
GENERIC_READ, // open for reading
FILE_SHARE_READ, // share for reading
NULL, // no security
OPEN_EXISTING, // existing file only
FILE_ATTRIBUTE_NORMAL, // normal file
NULL); // no attr. template
if( hFile == INVALID_HANDLE_VALUE )
{
if( GetLastError( ) == ERROR_FILE_NOT_FOUND )
bFileExists = FALSE;
//in case of other errors file exists but it couldn't be opened for some
reason, you can check for more system error codes
}
else
CloseHandle( hFile );
--
regards, Zodiaq
|
|
From: Zodiaq <zo...@as...> - 2004-06-21 07:18:17
|
Hello Noorez and all Dev-C++ users, Monday, June 21, 2004, 7:10:53 AM, Noorez wrote as follows: NK> The marked loop keeps going on forever. Even if the condition in false NK> cin >> goOn; Do not use this, use rather this: goOn = cin.get( ); this reads exactly one char, and now you don't need sync... -- regards, Zodiaq |
|
From: Per W. <pw...@ia...> - 2004-06-21 05:39:03
|
Think about it for a while:
do {
} while (goOn != 'n' || goOn != 'N' || goOn != 'y' || goOn != 'Y');
When would this expression _ever_ be false?
Assume goOn = 'n':
do {
} while ('n' != 'n' || 'n != 'N' || 'n' != 'y' || 'n' != 'Y');
which is:
do {
} while (false || true || true || true);
which is:
do {
} while (true);
You have to replace || with && for a working expression...
/Per W
On Sun, 20 Jun 2004, Noorez Kassam wrote:
> The marked loop keeps going on forever. Even if the condition in false
>
> int main()
> {
> cout << "Welcome to the quiz maker.\n";
> cout << "With this program you can make a Multiple Choice/True or False
> quiz.\n";
> cout << "We need the name of the quiz file: ";
> char* quizName = new char;
> cin.getline(quizName,123);
> strcat(quizName,".qz");
> cout << "If filename exists it will be overwritten\n";
> cout << "Continue [Y\\N]";
> char goOn;
> do//this loop
> {
> cin >> goOn;
> cin.sync();
> if(goOn == 'n' || goOn == 'N')
> return 0;
> }while(goOn != 'n' || goOn != 'N' || goOn != 'y' || goOn != 'Y');//keeps
> running even if goOn == 'y' || goOn == 'Y'
>
> cout << endl << "\nLets start making questions!\n";
> system("pause");
> system("cls");
> Quiz question;
> char contin;
> do
> {
> question = question.createQuestion();
> question.writeQuestion(question,Quiz::type,quizName);
> Quiz::questionNumb = Quiz::questionNumb+1;
> cout << "\nDo you want to add another question [Y\\N] ";
> do
> {
> cin >> contin;
>
> }while(!(contin == 'y' || contin == 'Y' || contin == 'n' || contin
> == 'N'));
>
> }while(contin == 'y' || contin == 'Y');
> }
>
> _________________________________________________________________
> Free yourself from those irritating pop-up ads with MSn Premium. Get 2months
> FREE*
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> 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: Noorez K. <coo...@ho...> - 2004-06-21 05:10:55
|
The marked loop keeps going on forever. Even if the condition in false
int main()
{
cout << "Welcome to the quiz maker.\n";
cout << "With this program you can make a Multiple Choice/True or False
quiz.\n";
cout << "We need the name of the quiz file: ";
char* quizName = new char;
cin.getline(quizName,123);
strcat(quizName,".qz");
cout << "If filename exists it will be overwritten\n";
cout << "Continue [Y\\N]";
char goOn;
do//this loop
{
cin >> goOn;
cin.sync();
if(goOn == 'n' || goOn == 'N')
return 0;
}while(goOn != 'n' || goOn != 'N' || goOn != 'y' || goOn != 'Y');//keeps
running even if goOn == 'y' || goOn == 'Y'
cout << endl << "\nLets start making questions!\n";
system("pause");
system("cls");
Quiz question;
char contin;
do
{
question = question.createQuestion();
question.writeQuestion(question,Quiz::type,quizName);
Quiz::questionNumb = Quiz::questionNumb+1;
cout << "\nDo you want to add another question [Y\\N] ";
do
{
cin >> contin;
}while(!(contin == 'y' || contin == 'Y' || contin == 'n' || contin
== 'N'));
}while(contin == 'y' || contin == 'Y');
}
_________________________________________________________________
Free yourself from those irritating pop-up ads with MSn Premium. Get 2months
FREE*
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
|
|
From: Noorez K. <coo...@ho...> - 2004-06-21 04:15:33
|
I marked the error with a comment.
void Quiz::writeQuestion(Quiz ques, int type, char* quizName)
{
ofstream out_file(quizName,ios::noreplace); //compiler returns error
that ios::noreplace doesn't exist.
if(type == 1)
{
out_file << "#\n" << questionNumb << ". " << ques.question << '\n';
out_file << "A. " << ques.answerA << '\n';
out_file << "B. " << ques.answerB << '\n';
out_file << "C. " << ques.answerC << '\n';
out_file << "D. " << ques.answerD << '\n';
out_file << '#' << ques.actual << '\n';
}
if(type == 2)
{
out_file << "#\n" << questionNumb << ". " << ques.question << '\n';
out_file << "True or False\n";
out_file << '#' << ques.actual << '\n';
}
}
I marked the error with a comment.
_________________________________________________________________
MSN Premium helps eliminate e-mail viruses. Get 2 months FREE*
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
|
|
From: Noorez K. <coo...@ho...> - 2004-06-21 03:25:04
|
My program creates files and the names are what ever the user says. How can I test to see if a file already exists? _________________________________________________________________ MSN Premium with Virus Guard and Firewall* from McAfee® Security : 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
|
From: PETER C. <nuc...@ms...> - 2004-06-21 02:47:57
|
VIRUS ALERT: I RECEIVED THIS EARLIER: >From: <adm...@yd...> >To: <adm...@yd...>, <dev...@li...> >Subject: [Dev-C++] McAfee GroupShield Alert >Date: Mon, 21 Jun 2004 04:34:52 +0200 > >McAfee GroupShield Alert > >McAfee GroupShield discovered a problem with the following email. See >your system administrator for further information. > >Date/Time sent: 21 jun 2004 04:34:51 >Subject line: [Dev-C++] failure notice >From: dev...@li... >To: dev...@li... >Action taken: Deleted >Virus: W32/Netsky.y@MM > > >Copyright © 1993-2003, Networks Associates Technology, Inc. >All Rights Reserved. >http://www.mcafeesecurity.com <http://www.mcafeesecurity.com/> > > >-------------------------------------------------------------------------------------- >This message and any files transmitted with it are confidential and >intended solely >for the use of the individual or entity to whom they are addressed. No >confidentiality >or privilege is waived or lost by any wrong transmission. >If you have received this message in error, please immediately destroy it >and kindly >notify the sender by reply email. >You must not, directly or indirectly, use, disclose, distribute, print, or >copy any >part of this message if you are not the intended recipient. Opinions, >conclusions and >other information in this message that do not relate to the official >business of >Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given >nor endorsed by it. >-------------------------------------------------------------------------------------- _________________________________________________________________ From will you? to I do, MSN Life Events is your resource for Getting Married. http://lifeevents.msn.com/category.aspx?cid=married |
|
From: <adm...@yd...> - 2004-06-21 02:34:24
|
McAfee GroupShield=C2=99 Alert=20 McAfee GroupShield discovered a problem with the following email. See your system administrator for further information.=20 Date/Time sent: 21 jun 2004 04:34:51 Subject line: [Dev-C++] failure notice From: dev...@li... To: dev...@li... Action taken: Deleted Virus: W32/Netsky.y@MM Copyright =C2=A9 1993-2003, Networks Associates Technology, Inc. All Rights Reserved. http://www.mcafeesecurity.com <http://www.mcafeesecurity.com/> =20 -------------------------------------------------------------------------= ------------- This message and any files transmitted with it are confidential and inten= ded solely=20 for the use of the individual or entity to whom they are addressed. No co= nfidentiality=20 or privilege is waived or lost by any wrong transmission.=20 If you have received this message in error, please immediately destroy it= =20and kindly=20 notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, o= r copy any=20 part of this message if you are not the intended recipient. Opinions, con= clusions and=20 other information in this message that do not relate to the official busi= ness of=20 Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given= =20nor endorsed by it.=20 -------------------------------------------------------------------------= ------------- |
|
From: Noorez K. <coo...@ho...> - 2004-06-21 01:37:00
|
I remember using the .rc file to make icons for your programs but I can't remember what it was. Can someone tell me? _________________________________________________________________ Add photos to your messages with MSN Premium. Get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
|
From: Lior W. <we...@st...> - 2004-06-20 21:51:40
|
Hi Thomas, AFAIK, Dev-C++ simply doesn't have this feature (yet?). I guess you will have to either change to a different IDE or make us of a documentation ( like everybody else ;). greets, Lior ----- Original Message ----- From: "User" <th...@bu...> To: <dev...@li...> Sent: Sunday, June 20, 2004 11:08 PM Subject: Re: [Dev-C++] Newbee:Methods and Properties > Thanks for the reply, but the reason why I asked for showing me the > methods is: In other IDE I write an object set a point and the IDE show > me the methods of these object. Is this also possible in DEV-C++? I > looking for an feature and I dont know it is built in right now. > > Thanks wrote Thomas and wish You a nice Equinox :) > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > 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: User <th...@bu...> - 2004-06-20 21:08:34
|
Thanks for the reply, but the reason why I asked for showing me the methods is: In other IDE I write an object set a point and the IDE show me the methods of these object. Is this also possible in DEV-C++? I looking for an feature and I dont know it is built in right now. Thanks wrote Thomas and wish You a nice Equinox :) |
|
From: Siva C. <siv...@ya...> - 2004-06-20 15:18:00
|
hello, I use wxWindows(wxWidgets) quite often and it all seems to work fine for me. I downloaded the DevPak from the following site: http://michel.weinachter.free.fr/ The sample program(or the Dev-C++ Template) has all the compiler and linker options rightly set. If you are interested in image manipulation for jpeg, png or tiff images, then you should include the suitable header files and link to your libtiff, libjpeg and libpng libraries. To me, your problem looks as if you are not having proper compiler options set. Hope this helps. Siva Chandra. --- "Axel_Buschhüter" <A_B...@gm...> wrote: > Hi, > I whant to use the wxWindows package but can't get > it to work... > I think I have istalled all nessesary packeges for > wxWindows... > When I open a new wx projekt from the templates and > try to compile it, it > will cause many errors !!! > I also tried to include the two libs (libwx.a & > libxpm.a) but the same > errors accure !!! > The first error, that accures, is a "redeclaration > of C++ built-in type > 'bool'" in "wx\defs.h" followed by a huge list of > other errors... > > Does someone use wxWindows with DevC++ and can tell > me how to setup it ??? > > thx, Acki __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
|
From: <A_B...@gm...> - 2004-06-20 15:00:49
|
Hi, I whant to use the wxWindows package but can't get it to work... I think I have istalled all nessesary packeges for wxWindows... When I open a new wx projekt from the templates and try to compile it, it will cause many errors !!! I also tried to include the two libs (libwx.a & libxpm.a) but the same errors accure !!! The first error, that accures, is a "redeclaration of C++ built-in type 'bool'" in "wx\defs.h" followed by a huge list of other errors... Does someone use wxWindows with DevC++ and can tell me how to setup it ??? thx, Acki -- +++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++ GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl |
|
From: Lior W. <we...@st...> - 2004-06-20 11:16:07
|
hi Peter,
instead of
"cin >> a,b,c;"
try
"cin >> a >> b >> c;"
greetings Lior
----- Original Message -----
From: "PETER CAMPOS" <nuc...@ms...>
To: <dev...@li...>
Sent: Sunday, June 20, 2004 6:05 AM
Subject: Re: [Dev-C++] cpp freshman trying to write program
> thanx for responding...
> here is what i have. i declared sum in int. i do not understand why sum =
a
> +b +c does not work.
> i also tried declraring the variables as double.
> the program runs but when adding 3+3+3 i get 3 million.
>
> #include <iostream>
> #include <iomanip>
> using namespace std;
>
> int main(){
> int a,b,c, sum;
> cout << "Input three different integers: " << endl;
> cin >> a,b,c;
> sum = a+ b+ c;
> cout << "the sum is: " << sum << endl;
> return 0;
> }
>
> >From: Per Westermark <pw...@ia...>
> >To: PETER CAMPOS <nuc...@ms...>
> >CC: dev...@li...
> >Subject: Re: [Dev-C++] cpp freshman trying to write program
> >Date: Sun, 20 Jun 2004 01:17:11 +0200 (CEST)
> >
> >Sorry, but we need more information about what you are trying to
> >accomplish. Just adding three numbers ins't so much of a problem :)
> >
> >#include <iostream>
> >
> >using std::cout;
> >
> >int main() {
> > int a = 10;
> > int b = 20;
> > int c = 30;
> > cout << "The sum is: " << a+b+c << "\n";
> > return 0;
> >}
> >
> >On Sat, 19 Jun 2004, PETER CAMPOS wrote:
> >
> > > trying to do simple numerical operators....+ - / *
> > > want to add three numbers
> > > been at this all day and i can't figure it out..
> > >
> > > help me out please
> > > peter--nyc
> > >
> > > _________________________________________________________________
> > > Get fast, reliable Internet access with MSN 9 Dial-up - now 3 months
> >FREE!
> > > http://join.msn.click-url.com/go/onm00200361ave/direct/01/
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> > > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> > > Conference, June 28 - July 1 at the Moscone Center in San Francisco,
CA
> > > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code
NWMGYKND
> > > _______________________________________________
> > > Dev-cpp-users mailing list
> > > Dev...@li...
> > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> > >
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> >Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> >Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> >REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> >_______________________________________________
> >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
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> 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: USER <th...@bu...> - 2004-06-20 07:49:54
|
Hallo, my question is: There is an function these show me the methods and properties of an object? In Python there is dir(OBJECT) (I know here is c++). Like: #include <io.. #include <string.h> main... string example; cout<< example.showMeYourProperties(); (I use a short writing :-) ). There is a universal "showMeYourProperties"? Or what is an easy way to find out the properties and methods? Thanks Thomas |
|
From: PETER C. <nuc...@ms...> - 2004-06-20 04:05:40
|
thanx for responding...
here is what i have. i declared sum in int. i do not understand why sum = a
+b +c does not work.
i also tried declraring the variables as double.
the program runs but when adding 3+3+3 i get 3 million.
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
int a,b,c, sum;
cout << "Input three different integers: " << endl;
cin >> a,b,c;
sum = a+ b+ c;
cout << "the sum is: " << sum << endl;
return 0;
}
>From: Per Westermark <pw...@ia...>
>To: PETER CAMPOS <nuc...@ms...>
>CC: dev...@li...
>Subject: Re: [Dev-C++] cpp freshman trying to write program
>Date: Sun, 20 Jun 2004 01:17:11 +0200 (CEST)
>
>Sorry, but we need more information about what you are trying to
>accomplish. Just adding three numbers ins't so much of a problem :)
>
>#include <iostream>
>
>using std::cout;
>
>int main() {
> int a = 10;
> int b = 20;
> int c = 30;
> cout << "The sum is: " << a+b+c << "\n";
> return 0;
>}
>
>On Sat, 19 Jun 2004, PETER CAMPOS wrote:
>
> > trying to do simple numerical operators....+ - / *
> > want to add three numbers
> > been at this all day and i can't figure it out..
> >
> > help me out please
> > peter--nyc
> >
> > _________________________________________________________________
> > Get fast, reliable Internet access with MSN 9 Dial-up now 3 months
>FREE!
> > http://join.msn.click-url.com/go/onm00200361ave/direct/01/
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
>Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
>Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
>REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
>_______________________________________________
>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
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
|
|
From: <per...@ya...> - 2004-06-20 03:37:00
|
My program is list belove:
/* *********************************************** */
#include <stdio.h>
#define MAXVEX 8
main()
{
char ga[MAXVEX];
int i, v1, v2, vexnum, edgenum;
printf("Input the number of vertex:");
scanf("%d", &vexnum);
getchar(); /* sentence 1 */
printf("Input the information of vertex:");
for (i = 1; i <= vexnum; i++) {
ga[i] = getchar();
}
printf("Input the number of edge:");
scanf("%d", &edgenum); /* sentence 2 */
printf("The pair of the vertvex in the edge:");
for (i = 1; i <= edgenum; i++) {
scanf("%d%d", &v1, &v2); /* sentence 3 */
}
system("PAUSE");
}
/* ****************************************** */
If I remove the sentence 1 from the program.The result is list here:
/* *********result 1************************ */
Input the number of vertex:2
Input the information of vertex:ab
Input the number of edge:The pair of the vertvex in the edge:
/* ********************************* */
It seem that the sentence 2 and 3 are not executed.If I put the sentence 1 to the original place,the program is result this:
/* ************result 2********************* */
Input the number of vertex:2
Input the information of vertex:ab
Input the number of edge:1
The pair of the vertvex in the edge:1 2
Please press any key to continue...
/* ********************************* */
This result 2 I think it it is right.Is it the problem caused by the first getchar( ) where is sentence 1? Why I remove the sentence 1 will bring the issue?Up to now I still don't know why.
Thanks,
Bruce .J Sam
---------------------------------
Do You Yahoo!?
嫌邮箱太小?雅虎电邮自助扩容! |
|
From: Per W. <pw...@ia...> - 2004-06-19 23:17:27
|
Sorry, but we need more information about what you are trying to
accomplish. Just adding three numbers ins't so much of a problem :)
#include <iostream>
using std::cout;
int main() {
int a =3D 10;
int b =3D 20;
int c =3D 30;
cout << "The sum is: " << a+b+c << "\n";
return 0;
}
On Sat, 19 Jun 2004, PETER CAMPOS wrote:
> trying to do simple numerical operators....+ - / *
> want to add three numbers
> been at this all day and i can't figure it out..
>
> help me out please
> peter--nyc
>
> _________________________________________________________________
> Get fast, reliable Internet access with MSN 9 Dial-up =96 now 3 months FR=
EE!
> http://join.msn.click-url.com/go/onm00200361ave/direct/01/
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> 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: PETER C. <nuc...@ms...> - 2004-06-19 20:44:20
|
trying to do simple numerical operators....+ - / * want to add three numbers been at this all day and i can't figure it out.. help me out please peter--nyc _________________________________________________________________ Get fast, reliable Internet access with MSN 9 Dial-up now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/ |
|
From: Siva C. <siv...@ya...> - 2004-06-19 15:30:10
|
Hello all, Is there a way to use doxygen with Dev-C++. I do not want to write my own make files cause Dev-C++ does a good job with that. TIA, Siva Chandra __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
|
From: Ray K. <ray...@my...> - 2004-06-19 03:33:42
|
Hmm...three of us have responded now, and we all seem to have interpreted your question differently. Do any of our responses seem to fit what you were looking for? If not, could you please rephrase and/or elaborate upon the question? |
|
From: Lior W. <we...@st...> - 2004-06-18 15:21:07
|
"Dane Ensign" wrote: > In the function I need to use a for loop to increment through my six > dice variables that I set as global variables as: > die1, ..., die6. I cant figure out how to append the value of my > for-loop variable to the name of my "die" variable, so I can set it? > Is there a better way to do this? Im not supposed to use an array for > this assignment, but I am supposed to use a loop. Hi Dane, I din't get your original post, but if understand the above correctly, your exercise looks much like an exercise I once had to explain to some students. As to your question regarding "appending" (and to some rather misleading replies you got to it): yes, you can append the "for value" to a variable name, but the result would be a string, and not a variable name you could use to access variable values. I would say that the solution your teachers want to see would use either a "switch" statement or, if you havn't learned switchs yet, six "if" statements. Either way its not very pretty, but then again its supposed to teach you something, not to be pretty ;) Another hint: if you have to iterate more then 6 times in your for-loop you might want to consider using the modulo operator "%". Hope that helped a bit Lior dev...@li... |
|
From: Ray K. <ray...@my...> - 2004-06-18 14:24:39
|
"Dane Ensign" wrote: > In the function I need to use a for loop to increment through my six > dice variables that I set as global variables as: > die1, ..., die6. I cant figure out how to append the value of my > for-loop variable to the name of my "die" variable, so I can set it? > Is there a better way to do this? Im not supposed to use an array for > this assignment, but I am supposed to use a loop. If this is for a homework assignment, shouldn't you be figuring out the solution on your own? I will give you a pointer: What you wish to do is called "string concatenation", and there is a function in the standard library that handles it. (Actually, there are two functions in the standard library that would work here. I leave finding them to you.) |