[Dev-C++] Re:UNSUBSCRIBE,UNSUBSCRIBE,UNSUBSCRIBE
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Stefan M. <st...@po...> - 2003-08-19 04:58:19
|
UNSUBSCRIBE for st...@po... ----- Original Message ----- =46rom: <dev...@li...> To: <dev...@li...> Sent: Monday, August 18, 2003 8:24 PM Subject: Dev-cpp-users digest, Vol 1 #1623 - 6 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. Problem with getting started with a HTTP Client... [Newbie to Dev-Cpp] (Chain von den Keiya) > 2. RE: Dev-C++ with SQL (Reid Thompson) > 3. Re: (no subject) (Daniel Glenfield) > 4. RE: Dev-C++ with SQL (Ed Cottrell) > 5. RE: Dev-C++ with SQL (Reid Thompson) > 6. unsubscribe (Wociech) > > --__--__-- > > Message: 1 > From: "Chain von den Keiya" <cha...@gm...> > To: <dev...@li...> > Date: Mon, 18 Aug 2003 06:05:10 +0200 > Subject: [Dev-C++] Problem with getting started with a HTTP Client... [Newbie to Dev-Cpp] > > Hi everybody, > I am trying to get started in programming a little HTTP Client to do > batch jobs... > But I have some problems... > First of all I had to look very long for a snippet. > Now I found one, but I am missing some Header Files for this... > They are: > Netdb.h > Arpa/inet.h > Netinet/in.h > Sys/socket.h > > Where can I get these? > Or has anybody a snippet of a simple HTTP Client for me? > > Greetings, > Richard Homonnai from Austria > > > > --__--__-- > > Message: 2 > Subject: RE: [Dev-C++] Dev-C++ with SQL > Date: Mon, 18 Aug 2003 07:39:44 -0400 > From: "Reid Thompson" <Rei...@at...> > To: <ci...@ya...>, > =3D?iso-8859-1?Q?Andr=3DE9=3D5C=3D22_=3D5C=3D22Mac=3DE1rio=3D5C=3D22_= Barros?=3D <and...@su...>, > "Dev-Cpp-Users" <dev...@li...> > > postgresql is an excellent choice also. > > reid > > > > -----Original Message----- > > From: David McKen [mailto:ci...@ya...]=3D20 > > Sent: Friday, August 15, 2003 9:33 PM > > To: Andr=3DE9" "Mac=3DE1rio" Barros; Dev-Cpp-Users > > Subject: Re: [Dev-C++] Dev-C++ with SQL > >=3D20 > >=3D20 > > mySQL++ seems to be the best one out there. > > http://www.mysql.com/downloads/api-mysql++.html > >=3D20 > > ----- Original Message -----=3D20 > > From: "Andr=3DE9 Mac=3DE1rio Barros" <and...@su...> > > To: "Dev-Cpp-Users" <dev...@li...> > > Sent: Friday, August 15, 2003 3:31 PM > > Subject: [Dev-C++] Dev-C++ with SQL > >=3D20 > >=3D20 > > > Dear Users, > > > > > > 1) Is it possible develop SQL code inside a C code in > > the Dev-C++ > > > environment? > > > 2) Is it possible develop SQL code inside a C++ code > > in the Dev-C++ > > > environment? > > > 3) If "Yes" for 1) and/or 2) do you know where can I > > get a free > > > documentation > > > for free download? > > > > > > Regards > > > Andre Barros > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Free pre-built ASP.NET > > sites including > > > 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 > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > 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/=3D > 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: 3 > From: "Daniel Glenfield" <sp...@ho...> > To: or...@vp..., dev...@li... > Subject: Re: [Dev-C++] (no subject) > Date: Mon, 18 Aug 2003 13:06:46 +0100 > > I think he means the console background colour. > > > >From: OROSZI Bal=E1zs <or...@vp...> > >To: dev...@li... > >Subject: Re: [Dev-C++] (no subject) > >Date: Sat, 16 Aug 2003 09:56:37 +0200 > > > >yiwei li wrote: > >>hihi is there anyone here know how to change the background color o= f where > >>you run the programme (not the text color). Thanks > > > >Is there anyone, who understands this question? :) > > > >-- > >Greetings, > > Bal=E1zs > > > > > > > > > >------------------------------------------------------- > >This SF.Net email sponsored by: Free pre-built ASP.NET sites includi= ng > >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 > > _________________________________________________________________ > Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile > > > > --__--__-- > > Message: 4 > From: "Ed Cottrell" <em...@ed...> > To: "'Dev-Cpp-Users'" <dev...@li...> > Subject: RE: [Dev-C++] Dev-C++ with SQL > Date: Mon, 18 Aug 2003 08:53:54 -0400 > > > postgresql is an excellent choice also. > > Yes, but MySQL is faster, smaller, more stable, and just as free... > > > > > > -----Original Message----- > > From: David McKen [mailto:ci...@ya...] > > Sent: Friday, August 15, 2003 9:33 PM > > To: Andr=3DE9" "Mac=3DE1rio" Barros; Dev-Cpp-Users > > Subject: Re: [Dev-C++] Dev-C++ with SQL > >=3D20 > >=3D20 > > mySQL++ seems to be the best one out there. > > http://www.mysql.com/downloads/api-mysql++.html > >=3D20 > > ----- Original Message ----- > > From: "Andr=3DE9 Mac=3DE1rio Barros" <and...@su...> > > To: "Dev-Cpp-Users" <dev...@li...> > > Sent: Friday, August 15, 2003 3:31 PM > > Subject: [Dev-C++] Dev-C++ with SQL > >=3D20 > >=3D20 > > > Dear Users, > > > > > > 1) Is it possible develop SQL code inside a C code in > > the Dev-C++ > > > environment? > > > 2) Is it possible develop SQL code inside a C++ code > > in the Dev-C++ > > > environment? > > > 3) If "Yes" for 1) and/or 2) do you know where can I > > get a free > > > documentation > > > for free download? > > > > > > Regards > > > Andre Barros > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Free pre-built ASP.NET > > sites including > > > 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 > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites includin= g =3D > Data > Reports, E-commerce, Portals, and Forums are available now. Download = =3D > today > and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303= _01/=3D > 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 sponsored by: Free pre-built ASP.NET sites includin= g =3D > Data > Reports, E-commerce, Portals, and Forums are available now. Download = =3D > today > and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303= _01/=3D > 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: 5 > Subject: RE: [Dev-C++] Dev-C++ with SQL > Date: Mon, 18 Aug 2003 13:11:17 -0400 > From: "Reid Thompson" <Rei...@at...> > To: "Ed Cottrell" <em...@ed...>, > "Dev-Cpp-Users" <dev...@li...> > > It all depends on what you are planning to use it for. Note that I > ended my statement with the word "also", I was just offeringa an > alternative, with alternative options/capabilities. A quick search o= n > google will provide hours of reference/opinions to refute/support/dec= ide > for yourself which is better for your purposes( eg the table below > listing features that are not supported my MySql( > Sub-selects No > Transactions Yes, however InnoDB table type > must be used > Foreign key support No > Views No > Stored procedures No > Triggers No > Unions No > Full joins No > Constraints No.) > Are any of these requirements for your development/use??? etc. > So speed and size come with their own expenses. For most uses I do n= ot > think that the speed differences would be noticeable to the user or > developer. I am not aware of any postgresql stability issues either. > And I do not know the sizes of either MySQL or PostgreSQL as size has > not been a limiting factor. > > > http://www.webtechniques.com/archives/2001/09/jepson/ > MySQL's claim to fame is that it provides a reasonable set of feature= s, > such as built-in SQL functions, that follow the 80/20 rule: It has th= e > 20 percent of SQL capabilities that are needed for 80 percent of > database applications. Developers of simple applications can live > without the remaining features, such as stored procedures and > subqueries, or can work around them with creative client-side > programming. > > PostgreSQL, on the other hand, provides more features than MySQL. The= se > include more SQL functions, server-side procedural languages, and > sophisticated methods for date manipulation. PostgreSQL also offers > object-relational capabilities and geometric data types. If you're > developing an application that has highly complex business rules, > PostgreSQL lets you handle business logic on the database server. ...= =2E.. > Article continues. > > http://www.mysql.com/doc/en/MySQL-PostgreSQL_features.html notes > comparison with v7.2 of postgresql, which is now at v7.3.4. > > http://asia.cnet.com/builder/architect/db/0,39009328,39062643,00.htm > COMMENTARY-- I'm often asked, "Do you prefer PostgreSQL or MySQL?" My > answer is always the same: "It's a matter of preference." Here is a > comparison of MySQL and PostgreSQL databases, offered not for the sak= e > of voicing my opinion, but to help you make your own decision. > > Both systems have much to offer in terms of stability, flexibility, a= nd > performance. MySQL has features that PostgreSQL lacks, and vice versa= =2E > However, my primary focus is to help you determine which of the two > databases to use in your own development. > > Before getting into the side-by-side comparison, I need to make it cl= ear > I'm referring to default installations. MySQL has many different tabl= e > types that support transactions and foreign keys and are compliant wi= th > ACID. However, some of the configurations of these table types are qu= ite > complex. Not many Web developers or programmers use the additional ta= ble > types found in MySQL. With that said, let's compare these two product= s. > > Feature list > Table A is a side-by-side comparison of some of the more frequently u= sed > features of MySQL and PostgreSQL. > > Table A is not an exhaustive list of features, data types, or > performance issues relating to these two database systems-it just giv= es > a view of what each has to offer. From the table we see that PostgreS= QL > offers overall features for traditional database applications, while > MySQL focuses on faster performance for Web-based applications. Open > source development will bring more features to subsequent releases of > both databases. > Table A > POSTGRESQL MYSQL > ANSI SQL compliance Closer to ANSI SQL standard Follows some of > the ANSI SQL standards > Performance Slower Faster > Sub-selects Yes No > Transactions Yes Yes, however InnoDB table type > must be used > Database replication Yes Yes > Foreign key support Yes No > Views Yes No > Stored procedures Yes No > Triggers Yes No > Unions Yes No > Full joins Yes No > Constraints Yes No > Windows support Yes Yes > Vacuum (cleanup) Yes No > ODBC Yes Yes > JDBC Yes Yes > Different table types No Yes > > MySQL and PostgreSQL comparison > > When to use MySQL > Why would you use MySQL over PostgreSQL? First, we need to consider t= he > needs of the applications in terms of database requirements. If I wan= t > to create a Web application and performance is an issue, MySQL will b= e > my choice because it's fast and designed to work well with Web-based > servers. However, if I want to create another application that demand= s > transactions and foreign key references, PostgreSQL is the choice. > > As an open source developer, I work with both databases on a regular > basis, and I typically use all the features of a given database in th= e > design and development process. It wouldn't suffice for me to use > PostgreSQL for a database-driven Web site when my application require= s > performance. > > Even though MySQL is not fully compliant with the ANSI SQL standard, = I > should mention that, while PostgreSQL is closer to the ANSI SQL > standard, MySQL is closer to the ODBC standard. > > Let me suggest some reasons for using MySQL over PostgreSQL: > > * MySQL is relatively faster than PostgreSQL. > * Database design will be simpler. > * You can create a basic Web-driven Web site. > * MySQL's replication has been thoroughly tested. > * There's no need for cleanups in MySQL (Vacuum). > > When to use PostgreSQL > Not many Web developers use PostgreSQL because they feel that the > additional features degrade performance. For example, some of the > features I use are foreign key references, triggers, and views. They > allow me to hide the complexity of the database from the application, > thus avoiding the creation of complicated SQL commands. I know many > developers who prefer the rich functionality of PostgreSQL's SQL > commands. One of the most notable differences between MySQL and > PostgreSQL is the fact that you can't do nested subqueries of subsele= cts > in MySQL. PostgreSQL follows many of the SQL ANSI standards, thus > allowing the creation of complex SQL commands. > > Let me suggest some reasons for using PostgreSQL over MySQL: > > * Complex database design > * Moving away from Oracle, Sybase, or MSSQL > * Complex rule sets (i.e., business rules) > * Use of procedural languages on the server > * Transactions > * Use of stored procedures > * Use of geographical data > * R-Trees (i.e., used on indexes) > > http://brainscraps.com/faq/pg_my.html Are there any good reasons to > choose PostgreSQL over MySQL? > > (updated for PostgreSQL 7.3 and MySQL 4) > > Rick Morris > ri...@br... > > > To start with, comparing PostgreSQL and MySQL directly is a serious > mistake. The real question is "what kinds of applications do you want= to > build?". I have had experience building complex web-based application= s > with both MySQL (mainly against my will) and PostgreSQL, and here are > some of the conclusions I reached: > > The basic (over)generalization I often hear is: use MySQL for basic > dynamic websites, and very lightweight (read: non-critical) > applications, but use PostgreSQL for Serious stuff. Well, this is not= a > bad generalization, but even for lightweight applications, PostgreSQL > can really save you some time, and a lot of server-side code, if you > bother to learn about views, constraints, stored procedures, triggers= , > etc... > > Here are just the basics on what MySQL lacks, which PostgreSQL covers > nicely: (I know MySQL is working on some of them, but it is rather la= te > in the game, it seems to me...)..... Article continues > > reid > > > > -----Original Message----- > > From: Ed Cottrell [mailto:em...@ed...]=3D20 > > Sent: Monday, August 18, 2003 8:54 AM > > To: 'Dev-Cpp-Users' > > Subject: RE: [Dev-C++] Dev-C++ with SQL > >=3D20 > >=3D20 > > > postgresql is an excellent choice also. > >=3D20 > > Yes, but MySQL is faster, smaller, more stable, and just as free... > >=3D20 > > > > --__--__-- > > Message: 6 > From: "Wociech" <nie...@po...> > To: <dev...@li...> > Date: Mon, 18 Aug 2003 20:23:15 +0200 > Subject: [Dev-C++] unsubscribe > > > ----- Original Message ----- > =3D46rom: <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 compile= d > binaries) (Mark Livingstone) > > 3. RE: Compiler (Ioannis Vranos) > > 4. Re: Compiler (Daniel K. O.) > > 5. bit extraction problem (Dawood Vora) > > 6. Re: Compiler (=3D3D?ISO-8859-1?Q?OROSZI_Bal=3D3DE1zs?=3D3D) > > 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 t= o =3D > me, =3D3D > > but=3D3D20 > > this list in email form is very bad to read the messages sent the l= is=3D > t. > =3D3D20 > > F=3D3DF3rum would have to be one type phpBB, it would be much more = easy=3D > to an=3D3D > > swer=3D3D20 > > the messages, and a suggestion would not crowd the box of entrance = of=3D > its=3D3D > > =3D3D20 > > email alone. if sufficiently people to agree we poderiamos to spea= k =3D > with=3D3D > > =3D3D20 > > the staff of the Dev-c++ on the subject! or if they not to agree c= ou=3D > ld=3D3D20 > > create thus in same a forum. it are that we teriamos much more adv= an=3D > tage=3D3D > > s=3D3D20 > > in our communication!=3D3D20 > > > > -------- > > Rhuan Barros, 16 anos, > > Brasil - Rio Grande do Sul - Porto Alegre, > > T=3D3DE9cnico em Inform=3D3DE1tica > > ICQ 45268878 > > --------=3D3D20 > > > > =3D3D20 > > > > > > --=3D3D20 > > POP. Nem parece internet gr=3D3DE1tis.=3D3D20 > > > > Seja POP voc=3D3DEA tamb=3D3DE9m! > > Acesse: http://www.pop.com.br/pop_discador.php e baixe o POPdiscado= r. > > > > > > -- __--__-- > > > > 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 stri= ng=3D > 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@topsailconsulti= ng=3D > =3D2Ecom> > wrote: > > > > EC> So, how can I hide those strings in the compiled code, other th= an > > 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 rout= in=3D > 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 unsubs= cr=3D > ibe > > faq. :-) A more convenient solution would be an explicit "Pause aft= er=3D > 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= ir=3D > 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 prog= ra=3D > 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 unsub= sc=3D > ribe > > >faq. :-) A more convenient solution would be an explicit "Pause af= te=3D > 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 intege= r. > > It works fine, if the input number is within the range of long type= o=3D > f > int. > > It is suppose to give me a message, if the input number is either g= re=3D > ater > > than the max limits of long or lower than the min limits of long. = Bu=3D > t it > > does not. Apparently the offending line is : "cin>>x;" If x is no= t =3D > able > > to accommodate any input number it simply stores the number 2 as pe= r =3D > 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 =3D3D 1; > > > > cin>>x; > > if ((x >=3D3D INT_MIN) && (x <=3D3D INT_MAX)){ > > int i =3D3D 1; > > while (i++ <=3D3D BYTE*sizeof(x)) { > > if (x&y) > > bits =3D3D '1' + bits; > > else > > bits =3D3D '0' + bits; > > y<<=3D3D1; > > } > > 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: =3D3D?ISO-8859-1?Q?OROSZI_Bal=3D3DE1zs?=3D3D <or...@vp...= inet.hu> > > To: dev...@li... > > Subject: Re: [Dev-C++] Compiler > > > > Ioannis Vranos wrote: > > > > > Ehehe, may be I shall put an answer for that question in the unsu= bs=3D > cribe > > > faq. :-) A more convenient solution would be an explicit "Pause a= ft=3D > er > run" > > > option in Dev-C++. > > > > Agreed, and it MUST be turned on by default. That would save us 5 m= ai=3D > ls > > a week. > > People don't read any faq nowadays. Just always ask... > > > > -- > > Greetings, > > Bal=3DE1zs > > > > > > > > -- __--__-- > > > > 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=3D > 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 =3D3D 1; > > > > > > cin>>x; > > > if ((x >=3D3D INT_MIN) && (x <=3D3D INT_MAX)){ > > > > Try this out and examine the output carefully: > > > > cout << "sizeof(int) =3D3D " << sizeof(int) << endl; > > cout << "sizeof(long) =3D3D " << sizeof(long) << endl; > > cout << "sizeof(long long) =3D3D " << sizeof(long long) << = endl=3D > ; > > > > cout << "\nINT_MIN, INT_MAX =3D3D " << INT_MIN << ", " > > << INT_MAX << endl; > > cout << "LONG_MIN, LONG_MAX =3D3D " << LONG_MIN << ", " > > << LONG_MAX << endl; > > > > cout << "\n(hex)INT_MIN, INT_MAX =3D3D " << hex << INT_MIN > > << ", " << INT_MAX << endl; > > cout << "(hex)LONG_MIN, LONG_MAX =3D3D " << LONG_MIN << ", = " > > << LONG_MAX << endl; > > > > cout << "\nLONG_LONG_MIN, LONG_LONG_MAX =3D3D " << dec > > << LONG_LONG_MIN << ", " << LONG_LONG_MAX << endl; > > cout << " (hex) =3D3D " << 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=3D3Dsignup > > > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job = se=3D > 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=3D > ut we > > would still need a faq, since the mejority of newcomers wouldn't kn= ow > > 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 unsu= bs=3D > cribe > > > faq. :-) A more convenient solution would be an explicit "Pause a= ft=3D > 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=3D > 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 incl= ud=3D > 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=3D > 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=3D > his > > forum seriously flawed. It has no required membership, so tons of t= he > > same posts (and troll posts) turn up way too frequently, oftentimes= b=3D > y > > anonymous posters. Furthermore it doesn't support "sticky posts", s= o > > it's not possible to keep a FAQ or other important information at t= he > > top of the list at all times. > > It would indeed be better if a different forum is used, but that wo= ul=3D > d > > only work if it became the "official" forum. > > > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf Of Rhu= an > > 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 t= o =3D > me, > > but=3D3D20 > > this list in email form is very bad to read the messages sent the l= is=3D > t. > > > > F=3D3DF3rum would have to be one type phpBB, it would be much more = easy=3D > to > > answer=3D3D20 > > the messages, and a suggestion would not crowd the box of entrance = of > > its=3D3D20 > > email alone. if sufficiently people to agree we poderiamos to spea= k > > with=3D3D20 > > the staff of the Dev-c++ on the subject! or if they not to agree c= ou=3D > ld=3D3D20 > > create thus in same a forum. it are that we teriamos much more > > advantages=3D3D20 > > in our communication!=3D3D20 > > > > -------- > > Rhuan Barros, 16 anos, > > Brasil - Rio Grande do Sul - Porto Alegre, > > T=3D3DE9cnico em Inform=3D3DE1tica > > ICQ 45268878 > > --------=3D3D20 > > > > =3D3D20 > > > > > > --=3D3D20 > > POP. Nem parece internet gr=3D3DE1tis.=3D3D20 > > > > Seja POP voc=3D3DEA tamb=3D3DE9m! > > Acesse: http://www.pop.com.br/pop_discador.php e baixe o POPdiscado= r. > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites includ= in=3D > 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_0723= 03=3D > _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=3D3Dsignup > > > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job = se=3D > 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=3D > =3D2Ee. > > not require some extra input in the end. > > > > I add the system("pause"); command during testing, just to allow th= e > > program to be run from the editor. When I stop compiling with debug= , =3D > I > > don't want the pause anymore. > > > > For a portable solution, the code should try and figure out if it w= as=3D > 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=3D3Dsignup > > > > > > CareerBuilder.com has over 400,000 jobs. Be smarter about your jo= b > search > > > http://corp.mail.com/careers > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Free pre-built ASP.NET sites incl= ud=3D > 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=3D > 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, mai= n,=3D > 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 SO= ME > > > 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 incl= ud=3D > 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=3D > 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 we= ll > > > 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=3D3Dsignup > > > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job = se=3D > 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 > > > > > --__--__-- > > _______________________________________________ > 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 |