[Dev-C++] Re: Dev-cpp-users digest, Vol 1 #336 - 2 msgs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Sebastien Z <se...@ex...> - 2001-07-14 16:36:09
|
On Fri, 13 Jul 2001 12:01:43 -0700, dev...@li... wrote: > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > http://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. Need some help with compiling PureLS (TCHAR probs ect..) (Johannes Pretorius) > 2. RE: Basic C question: scanf (Mary Sipple) > > --__--__-- > > Message: 1 > Date: Fri, 13 Jul 2001 09:35:58 +0200 > To: dev...@li... > From: Johannes Pretorius <joh...@pr...> > Cc: dev...@li... > Subject: [Dev-C++] Need some help with compiling PureLS (TCHAR probs ect..) > Reply-To: dev...@li... > > --=====================_9658778==_.ALT > Content-Type: text/plain; charset="us-ascii"; format=flowed > > Hi All > -0-0-0-0 > > I need some help here with getting PureLS from : http://www.purels.net/ > > To Compile with DevC++ The problem is that for starters it uses TCHAR > varaibles as _TCHAR > I geuss it is a Micro$oft thinf for I dont see it in the Header file of > DevC++ So I added it ,, Saw No problem anymore > But I need to know that this define that I added wont effect DevC++ in > other projects somewhere else ?? I hope not > and dont forsee it to, But I need to know. Also I have a problem that I > cant get some help on _tfopen this is > a problem as I struggle to get the next piece of coding to compile > > //-- SNIPPET START > f = _tfopen(fPath, _T("r")); > //--END SNIPPET > > I get the following Error > > warning: assignment makes pointer from integer without a cast > > This is funny And I cant seem to solve this for I cant give the function 's > Address for my understanding says that it already > give a address back (the file pointer (stream pointer)). Thus I am missing > something So please help in this sense.. > > Well that is all for now > > Thanks for help > > Johannes > > > > --=====================_9658778==_.ALT > Content-Type: text/html; charset="us-ascii" > > <html> > Hi All<br> > -0-0-0-0<br><br> > I need some help here with getting PureLS from : > <a href="http://www.purels.net/" eudora="autourl">http://www.purels.net/</a><br><br> > To Compile with DevC++ The problem is that for starters it uses TCHAR > varaibles as _TCHAR<br> > I geuss it is a Micro$oft thinf for I dont see it in the Header file of > DevC++ So I added it ,, Saw No problem anymore<br> > But I need to know that this define that I added wont effect DevC++ in > other projects somewhere else ?? I hope not<br> > and dont forsee it to, But I need to know. Also I have a problem that I > cant get some help on _tfopen this is<br> > a problem as I struggle to get the next piece of coding to > compile<br><br> > //-- SNIPPET START<br> > <x-tab> </x-tab><b>f = > _tfopen(fPath, _T("r"));<br> > </b>//--END SNIPPET<br><br> > I get the following Error<br><br> > <font face="MS Sans Serif, Geneva" size=2><b>warning: assignment makes > pointer from integer without a cast<br><br> > </b></font>This is funny And I cant seem to solve this for I cant give > the function 's Address for my understanding says that it already<br> > give a address back (the file pointer (stream pointer)). Thus I am > missing something So please help in this sense.. <br><br> > Well that is all for now<br><br> > Thanks for help<br><br> > Johannes<br><br> > <br> > </html> > > --=====================_9658778==_.ALT-- > > > > --__--__-- > > Message: 2 > From: "Mary Sipple" <ms...@in...> > To: <dev...@li...> > Subject: RE: [Dev-C++] Basic C question: scanf > Date: Thu, 12 Jul 2001 22:43:17 -0700 > Reply-To: dev...@li... > > Thanks to everyone who replied. I had expected the <cr> to be a legal input. > Thanks for the info. > > Mary > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of > Nurhidayat > Sent: Wednesday, July 11, 2001 11:03 PM > To: dev...@li... > Subject: Re: [Dev-C++] Basic C question: scanf > > > At 20:47 11/07/2001 -0700, you wrote: > >When the program is run, the prompt "Enter salaries:" is printed. After > >that, I enter a series of numbers, then press the Enter key. The printf in > >the loop is executed for each number input, but then the program hangs. > > No, it doesn't hang. > After the printf in the loop is executed, scanf still waiting legal input. > > while (scanf("%lf", &salary) == 1) { > ... > } > > So to finish scanf, you have to give illegal input or non numeric > character, like 'x' (or another alphabet character you like) then press > [Enter]. > > Try to give input like this: > > Enter salaries: 100 200 150 600 x [Enter] > > > > If you write loop like this > > while (scanf("%lf", &salary) != EOF) { > ... > } > > You can use <ctrl>Z to finish input. > > > > ___Nurhidayat___ > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest hi all, i'm a beginnere so this should be a simple question. What is a parse error? When I put: cin>>a; after the Add() function declaration, Dev-C++ gives me an error, here it is: 18 func.cpp | parse error before `>' Can someone help? Thanks! _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ |