|
From: Wociech <nie...@po...> - 2003-08-18 18:23:46
|
----- Original Message ----- =46rom: <dev...@li...> To: <dev...@li...> Sent: Sunday, August 17, 2003 1:44 PM Subject: Dev-cpp-users digest, Vol 1 #1620 - 15 msgs > 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. opinion on as it could be the list (Rhuan Paulo Lopes Barros) > 2. Re: Help with application security (hiding strings in compiled binaries) (Mark Livingstone) > 3. RE: Compiler (Ioannis Vranos) > 4. Re: Compiler (Daniel K. O.) > 5. bit extraction problem (Dawood Vora) > 6. Re: Compiler (=3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D) > 7. complier solution -- well maybe (Michael D. Smith) > 8. Re: bit extraction problem (w.y.) > 9. Re: Compiler (Hossein Haeri) > 10. RE: Compiler (Per Westermark) > 11. RE: opinion on as it could be the list (P.D. van Zelst) > 12. Re: How do I store HUGE numbers. (Hossein Haeri) > 13. Re: Compiler (Per Westermark) > 14. Re: complier solution -- well maybe (Per Westermark) > 15. Re: How do I store HUGE numbers. (Hossein Haeri) > > --__--__-- > > Message: 1 > From: "Rhuan Paulo Lopes Barros" <rhu...@po...> > To: dev...@li... > Date: Sun, 17 Aug 2003 00:53:11 -0300 > Subject: [Dev-C++] opinion on as it could be the list > > I do not know if the remaining portion of the staff goes to agree to = me, =3D > but=3D20 > this list in email form is very bad to read the messages sent the lis= t. =3D20 > F=3DF3rum would have to be one type phpBB, it would be much more easy= to an=3D > swer=3D20 > the messages, and a suggestion would not crowd the box of entrance of= its=3D > =3D20 > email alone. if sufficiently people to agree we poderiamos to speak = with=3D > =3D20 > the staff of the Dev-c++ on the subject! or if they not to agree cou= ld=3D20 > create thus in same a forum. it are that we teriamos much more advan= tage=3D > s=3D20 > in our communication!=3D20 > > -------- > Rhuan Barros, 16 anos, > Brasil - Rio Grande do Sul - Porto Alegre, > T=3DE9cnico em Inform=3DE1tica > ICQ 45268878 > --------=3D20 > > =3D20 > > > --=3D20 > POP. Nem parece internet gr=3DE1tis.=3D20 > > Seja POP voc=3DEA tamb=3DE9m! > Acesse: http://www.pop.com.br/pop_discador.php e baixe o POPdiscador. > > > --__--__-- > > Message: 2 > Date: Sun, 17 Aug 2003 14:51:44 +1000 (EST) > From: Mark Livingstone <mli...@ip...> > Subject: Re: [Dev-C++] Help with application security (hiding string= s in compiled binaries) > To: dev...@li... > Reply-To: Mark Livingstone <mli...@ip...> > > On Fri, 15 Aug 2003 17:10:05 -0400 Ed Cottrell <emc@topsailconsulting= =2Ecom> wrote: > > EC> So, how can I hide those strings in the compiled code, other than > EC> building > EC> in some sort of encryption? Would building the passwords from > EC> individual > EC> characters (ASCII values) work? Other ideas? > > Build the DSN string in say ROT13 (or any other shrouding type routin= e) and > then when you go to use it, unshroud it. > > HTH > > MarkL > > > > > > --__--__-- > > Message: 3 > From: "Ioannis Vranos" <iv...@em...> > To: <dev...@li...> > Subject: RE: [Dev-C++] Compiler > Date: Sun, 17 Aug 2003 08:05:16 +0300 > > Ehehe, may be I shall put an answer for that question in the unsubscr= ibe > faq. :-) A more convenient solution would be an explicit "Pause after= run" > option in Dev-C++. > > > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Smurf, Papa > > Sent: Saturday, August 16, 2003 8:49 PM > > To: dev...@li... > > Subject: RE: [Dev-C++] Compiler > > > > > > You guys should do a FAQ for these kinds of questions ;) > > Like what someone did for unsubscribing. > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of alir= eza > > goshtaei > > Sent: Saturday, August 16, 2003 7:30 PM > > To: dev...@li... > > Subject: [Dev-C++] Compiler > > > > > > Dear friend > > everytime I run the program in DEV-C++ the wondows > > console is closed so fast so I can't see the result. > > how come can I fix this problem ? > > thanks > > alex > > > > > --__--__-- > > Message: 4 > Date: Sun, 17 Aug 2003 03:35:31 -0300 > From: "Daniel K. O." <dan...@ya...> > CC: dev...@li... > Subject: Re: [Dev-C++] Compiler > > > And why the hell don't you guys include a template for console progra= ms > that shows how to pause before exiting? Oh wait... never mind... > > > > > Daniel K. O. > > > Ioannis Vranos wrote: > > >Ehehe, may be I shall put an answer for that question in the unsubsc= ribe > >faq. :-) A more convenient solution would be an explicit "Pause afte= r run" > >option in Dev-C++. > > > > > > > > > > > > > >Ioannis Vranos > > > > > > > > > --__--__-- > > Message: 5 > Date: Sun, 17 Aug 2003 15:07:01 +0800 > From: Dawood Vora <da...@ku...> > To: Dev C++ <dev...@li...> > Subject: [Dev-C++] bit extraction problem > > bit extraction problem > > Below is a program to extract the layout of the bits from an integer. > It works fine, if the input number is within the range of long type o= f int. > It is suppose to give me a message, if the input number is either gre= ater > than the max limits of long or lower than the min limits of long. Bu= t it > does not. Apparently the offending line is : "cin>>x;" If x is not = able > to accommodate any input number it simply stores the number 2 as per = my > system. Does anybody know, how to solve this problem. > > #include <cstdlib> > #include <iostream> > #include <climits> > using namespace std; > > #define BYTE 8 > > int main() > { > string bits; > long x; > unsigned long y =3D 1; > > cin>>x; > if ((x >=3D INT_MIN) && (x <=3D INT_MAX)){ > int i =3D 1; > while (i++ <=3D BYTE*sizeof(x)) { > if (x&y) > bits =3D '1' + bits; > else > bits =3D '0' + bits; > y<<=3D1; > } > cout<<"the bit layout in x :"; > cout<<bits<<'\n'; > } > else > cout<< "input number either too large or too small\n"; > > system("PAUSE"); > return 0; > > } > > > > --__--__-- > > Message: 6 > Date: Sun, 17 Aug 2003 09:36:59 +0200 > From: =3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D <or...@vp...> > To: dev...@li... > Subject: Re: [Dev-C++] Compiler > > Ioannis Vranos wrote: > > > Ehehe, may be I shall put an answer for that question in the unsubs= cribe > > faq. :-) A more convenient solution would be an explicit "Pause aft= er run" > > option in Dev-C++. > > Agreed, and it MUST be turned on by default. That would save us 5 mai= ls > a week. > People don't read any faq nowadays. Just always ask... > > -- > Greetings, > Bal=E1zs > > > > --__--__-- > > Message: 7 > Date: Sun, 17 Aug 2003 03:30:44 -0500 > To: dev...@li... > From: "Michael D. Smith" <for...@hi...> > Subject: [Dev-C++] complier solution -- well maybe > > When you start a new console operation, it has include stdio, main, t= he {} > and return already there. Why not have the pause by default. It's a console > operation and you can safely assume no one will not need to do SOME > debugging so why not? > > But then they would be asking how to make it stop :) > > ms > > Slap it on the side. Works with my TV set. > From the original My Favorite Martian comic book > > > > --__--__-- > > Message: 8 > Date: Sun, 17 Aug 2003 06:59:58 -0400 > From: "w.y." <yok...@ve...> > To: Dev C++ <dev...@li...> > Subject: Re: [Dev-C++] bit extraction problem > > > > Dawood Vora wrote: > > > > string bits; > > long x; > > unsigned long y =3D 1; > > > > cin>>x; > > if ((x >=3D INT_MIN) && (x <=3D INT_MAX)){ > > Try this out and examine the output carefully: > > cout << "sizeof(int) =3D " << sizeof(int) << endl; > cout << "sizeof(long) =3D " << sizeof(long) << endl; > cout << "sizeof(long long) =3D " << sizeof(long long) << endl= ; > > cout << "\nINT_MIN, INT_MAX =3D " << INT_MIN << ", " > << INT_MAX << endl; > cout << "LONG_MIN, LONG_MAX =3D " << LONG_MIN << ", " > << LONG_MAX << endl; > > cout << "\n(hex)INT_MIN, INT_MAX =3D " << hex << INT_MIN > << ", " << INT_MAX << endl; > cout << "(hex)LONG_MIN, LONG_MAX =3D " << LONG_MIN << ", " > << LONG_MAX << endl; > > cout << "\nLONG_LONG_MIN, LONG_LONG_MAX =3D " << dec > << LONG_LONG_MIN << ", " << LONG_LONG_MAX << endl; > cout << " (hex) =3D " << hex << LONG_LONG_MIN << ", " > << LONG_LONG_MAX << endl; > > > --__--__-- > > Message: 9 > From: "Hossein Haeri" <ult...@em...> > To: dev...@li... > Date: Sun, 17 Aug 2003 06:11:30 -0500 > Subject: Re: [Dev-C++] Compiler > > Dear Alireza (or Alex, don't know which!), > > Amongst all the group-given solutions to your problem, the most > portable is to use std::cin. (I presume that you are using C++, > and not C.) Use it this way: > > #include <iostream> > > int main() > { > ... > cin.get();//The last line of main() body > } > > Regards, > --Hossein > > -- > __________________________________________________________ > Sign-up for your own personalized E-mail at Mail.com > http://www.mail.com/?sr=3Dsignup > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job se= arch > http://corp.mail.com/careers > > > > --__--__-- > > Message: 10 > Date: Sun, 17 Aug 2003 13:23:45 +0200 (CEST) > From: Per Westermark <pw...@ia...> > To: Ioannis Vranos <iv...@em...> > cc: dev...@li... > Subject: RE: [Dev-C++] Compiler > > Yes, such a switch would be invaluable - some other tools have it - b= ut we > would still need a faq, since the mejority of newcomers wouldn't know > about it... > > /Per W > > On Sun, 17 Aug 2003, Ioannis Vranos wrote: > > > Ehehe, may be I shall put an answer for that question in the unsubs= cribe > > faq. :-) A more convenient solution would be an explicit "Pause aft= er run" > > option in Dev-C++. > > > > > > > > > > > > > > Ioannis Vranos > > > > * Programming pages: http://www.noicys.freeurl.com > > * Alternative URL 1: http://run.to/noicys > > * Alternative URL 2: http://www.noicys.cjb.net > > > > > -----Original Message----- > > > From: dev...@li... > > > [mailto:dev...@li...] On Behalf > > > Of Smurf, Papa > > > Sent: Saturday, August 16, 2003 8:49 PM > > > To: dev...@li... > > > Subject: RE: [Dev-C++] Compiler > > > > > > > > > You guys should do a FAQ for these kinds of questions ;) > > > Like what someone did for unsubscribing. > > > > > > -----Original Message----- > > > From: dev...@li... > > > [mailto:dev...@li...]On Behalf Of al= ireza > > > goshtaei > > > Sent: Saturday, August 16, 2003 7:30 PM > > > To: dev...@li... > > > Subject: [Dev-C++] Compiler > > > > > > > > > Dear friend > > > everytime I run the program in DEV-C++ the wondows > > > console is closed so fast so I can't see the result. > > > how come can I fix this problem ? > > > thanks > > > alex > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites includ= ing > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0= 1/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 > > > > > > --__--__-- > > Message: 11 > Reply-To: <mys...@xs...> > From: "P.D. van Zelst" <pa...@my...> > To: "'Rhuan Paulo Lopes Barros'" <rhu...@po...>, > <dev...@li...> > Subject: RE: [Dev-C++] opinion on as it could be the list > Date: Sun, 17 Aug 2003 13:25:39 +0200 > Organization: Mysterious Game Development > > There already is a Dev-C++ forum, hosted at SourceForge, but I find t= his > forum seriously flawed. It has no required membership, so tons of the > same posts (and troll posts) turn up way too frequently, oftentimes b= y > anonymous posters. Furthermore it doesn't support "sticky posts", so > it's not possible to keep a FAQ or other important information at the > top of the list at all times. > It would indeed be better if a different forum is used, but that woul= d > only work if it became the "official" forum. > > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Rhuan > Paulo Lopes Barros > Sent: Sunday, August 17, 2003 5:53 AM > To: dev...@li... > Subject: [Dev-C++] opinion on as it could be the list > > > I do not know if the remaining portion of the staff goes to agree to = me, > but=3D20 > this list in email form is very bad to read the messages sent the lis= t. > > F=3DF3rum would have to be one type phpBB, it would be much more easy= to > answer=3D20 > the messages, and a suggestion would not crowd the box of entrance of > its=3D20 > email alone. if sufficiently people to agree we poderiamos to speak > with=3D20 > the staff of the Dev-c++ on the subject! or if they not to agree cou= ld=3D20 > create thus in same a forum. it are that we teriamos much more > advantages=3D20 > in our communication!=3D20 > > -------- > Rhuan Barros, 16 anos, > Brasil - Rio Grande do Sul - Porto Alegre, > T=3DE9cnico em Inform=3DE1tica > ICQ 45268878 > --------=3D20 > > =3D20 > > > --=3D20 > POP. Nem parece internet gr=3DE1tis.=3D20 > > Seja POP voc=3DEA tamb=3DE9m! > Acesse: http://www.pop.com.br/pop_discador.php e baixe o POPdiscador. > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites includin= g > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303= _01 > /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 > > > > > --__--__-- > > Message: 12 > From: "Hossein Haeri" <ult...@em...> > To: dev...@li... > Date: Sun, 17 Aug 2003 06:29:35 -0500 > Subject: Re: [Dev-C++] How do I store HUGE numbers. > > Dear David, > > > Cool, > > It looks like it is exactly what I want. > > Thanks. > > > I would apeciate it if you would tell me when you complete > > it. > > Well, I don't really know. But, I hope to finish it whithin the > few next weaks (if no disaster jumps in). > > Do you want to test the version using boost::shared_ptr<>, > meanwhile? > > > Thanks in Advance > You'r welcome freind, no need to thanks! > > Regards, > --Hossein > -- > __________________________________________________________ > Sign-up for your own personalized E-mail at Mail.com > http://www.mail.com/?sr=3Dsignup > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job se= arch > http://corp.mail.com/careers > > > > --__--__-- > > Message: 13 > Date: Sun, 17 Aug 2003 13:32:54 +0200 (CEST) > From: Per Westermark <pw...@ia...> > To: Hossein Haeri <ult...@em...> > cc: dev...@li... > Subject: Re: [Dev-C++] Compiler > > Why bother about the most portable single-line solution? > > When I develop a console app, I want it to behave as a console app, i= =2Ee. > not require some extra input in the end. > > I add the system("pause"); command during testing, just to allow the > program to be run from the editor. When I stop compiling with debug, = I > don't want the pause anymore. > > For a portable solution, the code should try and figure out if it was= run > from the command line or from the desktop. > > /Per W > > On Sun, 17 Aug 2003, Hossein Haeri wrote: > > > Dear Alireza (or Alex, don't know which!), > > > > Amongst all the group-given solutions to your problem, the most > > portable is to use std::cin. (I presume that you are using C++, > > and not C.) Use it this way: > > > > #include <iostream> > > > > int main() > > { > > ... > > cin.get();//The last line of main() body > > } > > > > Regards, > > --Hossein > > > > -- > > __________________________________________________________ > > Sign-up for your own personalized E-mail at Mail.com > > http://www.mail.com/?sr=3Dsignup > > > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job search > > http://corp.mail.com/careers > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites includ= ing > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0= 1/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 > > > > > > --__--__-- > > Message: 14 > Date: Sun, 17 Aug 2003 13:34:13 +0200 (CEST) > From: Per Westermark <pw...@ia...> > To: "Michael D. Smith" <for...@hi...> > cc: dev...@li... > Subject: Re: [Dev-C++] complier solution -- well maybe > > At least my installation adds the system("pause") command. I don't > remember adding the line myself to the template, but then again, I > sometimes do edit the templates, and I'm known to be forgetful :-) > > /Per W > > On Sun, 17 Aug 2003, Michael D. Smith wrote: > > > When you start a new console operation, it has include stdio, main,= the {} > > and return already there. Why not have the pause by default. It's a console > > operation and you can safely assume no one will not need to do SOME > > debugging so why not? > > > > But then they would be asking how to make it stop :) > > > > ms > > > > Slap it on the side. Works with my TV set. > > From the original My Favorite Martian comic book > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites includ= ing > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0= 1/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 > > > > > > --__--__-- > > Message: 15 > From: "Hossein Haeri" <ult...@em...> > To: dev...@li... > Date: Sun, 17 Aug 2003 06:42:12 -0500 > Subject: Re: [Dev-C++] How do I store HUGE numbers. > > Dear Per, > > > Have you looked at the GNU MP library (GMP). > > http://www.swox.com/gmp/ > > Thank you for informing me about a new link. > > > It has good documentation, a large number of functions, and is well > > tested. > > Oh yeah! It seems so (and I'm sure that's actually the case). > But, maybe it is not that bad to let my library to be tested. > Anyway, if David needs a reliably tested library, there is > another one that is so reliable in comparison with mine. I don't > have a direct link to it, but it is (likely to be) named BigInt > (or some variation of it) , and it is somewhere whithin the boost > huge repository. It is best to search for it in: > > http://www.boost.org > > Regards, > --Hossein > > -- > __________________________________________________________ > Sign-up for your own personalized E-mail at Mail.com > http://www.mail.com/?sr=3Dsignup > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job se= arch > http://corp.mail.com/careers > > > > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest |