dev-cpp-users Mailing List for Dev-C++ (Page 296)
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: Paul H. <dra...@ne...> - 2003-11-04 16:55:31
|
Is there anyway to download 'CLGDI devpack' without going through = 'WebUpdate'? I tried to install it through it but It cut out half way = now it want show up on there! Thanks in advance Paul |
|
From: Paul M. <tr...@gm...> - 2003-11-04 16:32:08
|
sorry, if i ask again, but its really important! i need someone whos has built OpenAL from the sources and worked with it without problems traexx -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ |
|
From: Mark S. <mar...@li...> - 2003-11-04 16:18:01
|
Hi Is anyone using graphapp with devc++? I'm having problems with certain examples & I'm wondering if my build of the library is OK, has anyone produced a devpack or a libgraphapp.dev (that works) which I can compare my build with. Do I need any other linker parameters other than -lgraphapp ? TIA Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003 The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error. |
|
From: <ir...@ar...> - 2003-11-04 16:00:19
|
Hi Avi, Generally, as you have noticed, Dev-C++'s syntax highlighter helps you identify different aspects of your code. I think that most, if not all, the various keywords would be in the glossary mentioned. As and when you come across them, the syntax highlighting will indicate, if you do not already know. In that case, it should be a simple matter of checking that glossary, or some other more detailed reference, as to the actual meaning and syntax. You could do a search for such references, I personally do refer to cppreference.com, cplusplus.com and cprogramming.com from time to time. The 'operator' keyword is likely used in operator overloading. It should be fairly standard, so reasons why your compiler didnt recognise it could be that your compiler was non-standard, the syntax highlighting didnt include it, or simply that 'operator' wasnt defined as a keyword at the time, though I am not familiar with the history. Eugene > Date: Tue, 04 Nov 2003 15:45:01 +0200 > From: Avi Smith <sm...@ne...> > Subject: Re: [Dev-C++] keywords > To: Daniel Glenfield <sp...@ho...>, > dev...@li... > > Thanks for the link to the glossary! > > Perhaps I wasn't clear in my question. While the glossary is certainly > useful, it doesn't exactly provide what I'm looking for, which is a > list and description of all C/C++ keywords and functions (e.g., "int", > "do", "case", etc.) that are used in the DEV-C++ IDE. > > Here's one example: the word "operator" is interpreted by Dev-C++ as a > keyword (it becomes bolded when I type it), so I can't use it as an > identifier for a variable. Maybe it's compiler-specific; an compiler I > had a few years back didn't see it as a keyword. And what is the > "operator" keyword for, anyway? > > Any sources? > > TIA, > AS |
|
From: <seb...@sk...> - 2003-11-04 15:28:40
|
I know a vry good courses about C/C++ (http://www.developpez.be/downloads/c/cours_cpp-1.40.4-html.zip) unfortunatly is in french. Maybe anyone interested NiGhMa ----- Original Message ----- From: "Glenn Welker" <gl...@mr...> To: "Avi Smith" <sm...@ne...>; "Daniel Glenfield" <sp...@ho...>; <dev...@li...> Sent: Tuesday, November 04, 2003 3:11 PM Subject: RE: [Dev-C++] keywords > The operator keyword is used for overloading operators. Here is a list that might be useful to you. > > http://www.cppreference.com/keywords.html > > Sincerely, > Glenn Welker > Director of Product Development > MRH Technology Group > > > > -----Original Message----- > From: Avi Smith [mailto:sm...@ne...] > Sent: Tuesday, November 04, 2003 8:45 AM > To: Daniel Glenfield; dev...@li... > Subject: Re: [Dev-C++] keywords > > > Thanks for the link to the glossary! > > Perhaps I wasn't clear in my question. While the glossary is certainly > useful, it doesn't exactly provide what I'm looking for, which is a list and > description of all C/C++ keywords and functions (e.g., "int", "do", "case", > etc.) that are used in the DEV-C++ IDE. > > Here's one example: the word "operator" is interpreted by Dev-C++ as a > keyword (it becomes bolded when I type it), so I can't use it as an > identifier for a variable. Maybe it's compiler-specific; an compiler I had a > few years back didn't see it as a keyword. And what is the "operator" > keyword for, anyway? > > Any sources? > > TIA, > AS > > ----- Original Message ----- > From: Daniel Glenfield <sp...@ho...> > Sent: Tue, 04 Nov, 2003 14:19 > Subject: Re: [Dev-C++] keywords > > > > http://www.research.att.com/~bs/glossary.html#Gabstract-class > > >To: dev...@li... > >Subject: [Dev-C++] keywords > >Date: Tue, 04 Nov 2003 12:42:37 +0200 > > > >Hi. > > > >I'm new Dev-c++ and would like to know where I can find a list of C/C++ > >keywords, functions, etc. Is there a manual I can download? > > > >TIA, > >AS > > _________________________________________________________________ > Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > 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: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > 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: Michel E. <er...@ci...> - 2003-11-04 15:22:59
|
Hi list !
I've got a little question and I hope that you can give a beginner (like =
me) a helpin' hand :)
It's about clrscr() and gotoxy(). I know that these are non-standard =
functions but (as far as I know) useing the conio.h header,
they should work.
So my problem is, when I try to use clrscr() or gotoxy(), I always get =
this error : " [Linker error] undefined reference to `gotoxy' "
Yes, I #included conio :)
Yes, everything else works.
Yes, it's Dev-C++ 4.9.4.1
Yes, I know I am a beginner :-)
Thanks !
Michel
|
|
From: Daniel G. <sp...@ho...> - 2003-11-04 15:13:04
|
Shouldn't everything that is a keyword in C++ be highlighted by the compiler (and then in the IDE, Dev-C++)? So in other words a keyword is a keyword whatever compiler you are using, if it is a C++ keyword it must be treated as such by all compilers. Unless I am showing my ignorance? Or do you mean what keywords will be highlighted? >From: Avi Smith <sm...@ne...> >To: Daniel Glenfield <sp...@ho...>, >dev...@li... >Subject: Re: [Dev-C++] keywords >Date: Tue, 04 Nov 2003 15:45:01 +0200 > >Thanks for the link to the glossary! > >Perhaps I wasn't clear in my question. While the glossary is certainly >useful, it doesn't exactly provide what I'm looking for, which is a list >and >description of all C/C++ keywords and functions (e.g., "int", "do", "case", >etc.) that are used in the DEV-C++ IDE. > >Here's one example: the word "operator" is interpreted by Dev-C++ as a >keyword (it becomes bolded when I type it), so I can't use it as an >identifier for a variable. Maybe it's compiler-specific; an compiler I had >a >few years back didn't see it as a keyword. And what is the "operator" >keyword for, anyway? > >Any sources? > >TIA, >AS > >----- Original Message ----- >From: Daniel Glenfield <sp...@ho...> >Sent: Tue, 04 Nov, 2003 14:19 >Subject: Re: [Dev-C++] keywords > > > >http://www.research.att.com/~bs/glossary.html#Gabstract-class > > >To: dev...@li... > >Subject: [Dev-C++] keywords > >Date: Tue, 04 Nov 2003 12:42:37 +0200 > > > >Hi. > > > >I'm new Dev-c++ and would like to know where I can find a list of C/C++ > >keywords, functions, etc. Is there a manual I can download? > > > >TIA, > >AS > >_________________________________________________________________ >Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile > > > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >Does SourceForge.net help you be more productive? Does it >help you create better code? SHARE THE LOVE, and help us help >YOU! Click Here: http://sourceforge.net/donate/ >_______________________________________________ >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 |
|
From: Glenn W. <gl...@mr...> - 2003-11-04 14:11:43
|
The operator keyword is used for overloading operators. Here is a list = that might be useful to you. http://www.cppreference.com/keywords.html Sincerely,=20 Glenn Welker=20 Director of Product Development=20 MRH Technology Group=20 -----Original Message----- From: Avi Smith [mailto:sm...@ne...] Sent: Tuesday, November 04, 2003 8:45 AM To: Daniel Glenfield; dev...@li... Subject: Re: [Dev-C++] keywords Thanks for the link to the glossary! Perhaps I wasn't clear in my question. While the glossary is certainly useful, it doesn't exactly provide what I'm looking for, which is a list = and description of all C/C++ keywords and functions (e.g., "int", "do", = "case", etc.) that are used in the DEV-C++ IDE. Here's one example: the word "operator" is interpreted by Dev-C++ as a keyword (it becomes bolded when I type it), so I can't use it as an identifier for a variable. Maybe it's compiler-specific; an compiler I = had a few years back didn't see it as a keyword. And what is the "operator" keyword for, anyway? Any sources? TIA, AS ----- Original Message ----- From: Daniel Glenfield <sp...@ho...> Sent: Tue, 04 Nov, 2003 14:19 Subject: Re: [Dev-C++] keywords http://www.research.att.com/~bs/glossary.html#Gabstract-class >To: dev...@li... >Subject: [Dev-C++] keywords >Date: Tue, 04 Nov 2003 12:42:37 +0200 > >Hi. > >I'm new Dev-c++ and would like to know where I can find a list of C/C++ >keywords, functions, etc. Is there a manual I can download? > >TIA, >AS _________________________________________________________________ Hotmail messages direct to your mobile phone = http://www.msn.co.uk/msnmobile ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ 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: Avi S. <sm...@ne...> - 2003-11-04 13:50:55
|
Thanks for the link to the glossary! Perhaps I wasn't clear in my question. While the glossary is certainly useful, it doesn't exactly provide what I'm looking for, which is a list and description of all C/C++ keywords and functions (e.g., "int", "do", "case", etc.) that are used in the DEV-C++ IDE. Here's one example: the word "operator" is interpreted by Dev-C++ as a keyword (it becomes bolded when I type it), so I can't use it as an identifier for a variable. Maybe it's compiler-specific; an compiler I had a few years back didn't see it as a keyword. And what is the "operator" keyword for, anyway? Any sources? TIA, AS ----- Original Message ----- From: Daniel Glenfield <sp...@ho...> Sent: Tue, 04 Nov, 2003 14:19 Subject: Re: [Dev-C++] keywords http://www.research.att.com/~bs/glossary.html#Gabstract-class >To: dev...@li... >Subject: [Dev-C++] keywords >Date: Tue, 04 Nov 2003 12:42:37 +0200 > >Hi. > >I'm new Dev-c++ and would like to know where I can find a list of C/C++ >keywords, functions, etc. Is there a manual I can download? > >TIA, >AS _________________________________________________________________ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile |
|
From: ait <ai...@op...> - 2003-11-04 13:42:18
|
Hi I'm new to Dev-C++. I was looking for a tools for my new project and Dev-C++ as IDE with gtkmm as GUI toolkit seems to be the best choice for me, but i have 2 problems. Most important problem is debugging. I can't gebug program with the internal debugger at all. Debugging seems to work perfectly fine until I add anything related to gtkmm to the source. If I try to run program with any breakpoint set, gdb immediately crashes and debugging stops. I tried to replace gdb shipped with Dev-C++ with newest gdb from mingw package but the result was the same. The gdb from insight devpack seems to work but I can't see the "blue line" indicating where the exectuion has stopped. Second problem is related to class browser. If I generate C++ files with glade-- (.cc and .hh) class browser displays class members as a global variables/functions. I found that after copying .hh files to .hpp (for f1 in `ls *.hh`; do f2=`dirname $f1`/`basename $fi .hh`.hpp; cp -fv $f1 $f2; done) class browser can "see" the classes but this workaround is very inconinient (no links on Windows platform) :-( Are those problems related to my system only (Win2K)? Can anyone help me with this? Thanks in advance Tomek |
|
From: Marcelo K. <kit...@md...> - 2003-11-04 12:26:40
|
I am new to c++ and I just started to build a dll that can be used by =
excel. To practice in the building of my dll I would want it to return =
an array to excel, but I have tried hard without success. I can make the =
dll return single values, but not arrays.
I know that arrays have to be exported as SafeArrays but could not =
implement this in Dev-Cpp. There are some examples with the Microsoft =
compiler but when I try to compile them they failed.=20
In the Example below I got the error "[Linker error] undefined =
reference to `SafeArrayCreate@12'"
#include <windows.h>
#include <oleauto.h>
=20
#define DllExport __declspec(dllexport) __stdcall
extern "C" {
short DllExport NewArray(LPSAFEARRAY *ppsa)
{
LPSAFEARRAY psa;
SAFEARRAYBOUND sa;
sa.lLbound =3D 1;
sa.cElements =3D 10;
if (*ppsa =3D=3D NULL) //array not yet initialized
{
if ((psa =3D SafeArrayCreate(VT_I2, 1, &sa)) =3D=3D NULL)
return -2;
*ppsa =3D psa;
}
if ((*ppsa)->cDims !=3D 1) // check array dimensions
return -1;
else return -3;
=20
return 0;
}
}
Does anyone give me some advice in this topic?
Thanks in advance
Marcelo
|
|
From: Daniel G. <sp...@ho...> - 2003-11-04 12:19:23
|
http://www.research.att.com/~bs/glossary.html#Gabstract-class >From: Avi Smith <sm...@ne...> >To: dev...@li... >Subject: [Dev-C++] keywords >Date: Tue, 04 Nov 2003 12:42:37 +0200 > >Hi. > >I'm new Dev-c++ and would like to know where I can find a list of C/C++ >keywords, functions, etc. Is there a manual I can download? > >TIA, >AS _________________________________________________________________ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile |
|
From: Avi S. <sm...@ne...> - 2003-11-04 10:42:59
|
Hi. I'm new Dev-c++ and would like to know where I can find a list of C/C++ keywords, functions, etc. Is there a manual I can download? TIA, AS |
|
From: Per W. <pw...@ia...> - 2003-11-04 10:34:51
|
Availability of stricmp, strcmpi and strcasecmp are depending on compiler defines - strict ANSI etc. /Per W On Tue, 4 Nov 2003, Paul Hester wrote: > I've just started using Dev-C++ 4.9.8.4 from Dev-C++ 4. Just a couple of questions: 1. Why cant I use <string.h> function 'strcmpi'? I had a look in <string.h> file and it did'nt have it in there! Does everyone have this problem! I cant see how I'm the only one as I got it off the Dev site. Maybe I will just write it in? > Thanks for your imput in advance! > > Paul |
|
From: Paul H. <dra...@ne...> - 2003-11-04 09:29:51
|
I've just started using Dev-C++ 4.9.8.4 from Dev-C++ 4. Just a couple of = questions: 1. Why cant I use <string.h> function 'strcmpi'? I had a look = in <string.h> file and it did'nt have it in there! Does everyone have = this problem! I cant see how I'm the only one as I got it off the Dev = site. Maybe I will just write it in?=20 Thanks for your imput in advance! Paul |
|
From: Per W. <pw...@ia...> - 2003-11-04 07:55:07
|
There is _makepath() or _wmakepath() available in stdlib.h, also available
as _tmakepath() through tchar.h if you want unicode-support.
However, why do you ask here. Didn't you try a grep in the include
directory of the compiler? That is always the fastest method of locating
which include file that contains a specific function.
/Per W
On Tue, 4 Nov 2003, Dondolo Mpho wrote:
> Hi all
> I am getting an error "makepath:undeclared identifier"....can somebody
> please tell me what I am doing wrong. Is makepath() not declared in stdlib.h
>
>
> #include<stdlib.h>
>
> main()
> {
> char fullpath[_MAX_PATH];
> char drive[_MAX_DRIVE];
> char directory[_MAX_DIR];
> char filename[_MAX_FNAME];
> char extention[_MAX_EXT];
>
>
>
> makepath(fullpath, "c","\\Limpho\\mpho\\lindeka", "family" , "txt");
> return 0;
> }
>
|
|
From: Dondolo M. <MDo...@OL...> - 2003-11-04 07:34:59
|
Hi all
I am getting an error "makepath:undeclared identifier"....can somebody
please tell me what I am doing wrong. Is makepath() not declared in stdlib.h
#include<stdlib.h>
main()
{
char fullpath[_MAX_PATH];
char drive[_MAX_DRIVE];
char directory[_MAX_DIR];
char filename[_MAX_FNAME];
char extention[_MAX_EXT];
makepath(fullpath, "c","\\Limpho\\mpho\\lindeka", "family" , "txt");
return 0;
}
|
|
From: Vlada D. <dj...@im...> - 2003-11-04 07:14:47
|
You should link your library in the project.(Project->Project = Options->LinkerOptions) Add a line like=20 -lfltk(or whatever your library is called). Library names are like = libfoo.a, but you should strip the starting "lib", so you should write = -lfoo. ----- Original Message -----=20 From: Maya=20 Cc: Dev...@li...=20 Sent: Tuesday, November 04, 2003 7:51 AM Subject: Re: [Dev-C++] locale , to . I have installed FLTK in the 'C:\cygwin\usr\include\FL' folder, but I = don't know how to make Dev-C++ find the new library. Can anyone help? TIA zo...@ac... wrote: Hello all Dev-cpp-users, is there a way to force treting , in numbers as . ?? In Poland there = is a strange habit of writing numbers this way: number,fraction 13,75 no usual: number.fraction 13.75 using ifstream extraction loses fraction value... there is way to read = line, and replace each , with . then use istringstream on in and at last use normal extraction... lot of work - maybe there is other simplier way?? =20 --=20 Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the=20 power to make the innocent guilty and to make the guilty=20 innocent, and that's power.=20 - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Maya <Esc...@ne...> - 2003-11-04 03:46:03
|
I have installed FLTK in the 'C:\cygwin\usr\include\FL' folder, but I don't know how to make Dev-C++ find the new library. Can anyone help? TIA zo...@ac... wrote: >Hello all Dev-cpp-users, > > is there a way to force treting , in numbers as . ?? In Poland there is a >strange habit of writing numbers this way: >number,fraction 13,75 >no usual: >number.fraction 13.75 > >using ifstream extraction loses fraction value... there is way to read line, >and replace each , with . then use istringstream on in and at last use >normal extraction... lot of work - maybe there is other simplier way?? > > > -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Maya <Esc...@ne...> - 2003-11-04 03:20:42
|
Yes, I know exactly what you are talking about. C++ has already solved this problem with the use of locales and facets, but that is not related to Dev-cpp. However, there is a book that will help you, is called "Standard C++ IOStreams and Locales" isbn: 0-201-18395-1. I am right now working on a class called Money, it addresses problems like the one you are having. Let me know if you need any help, I would more than glad to help! zo...@ac... wrote: >Hello all Dev-cpp-users, > > is there a way to force treting , in numbers as . ?? In Poland there is a >strange habit of writing numbers this way: >number,fraction 13,75 >no usual: >number.fraction 13.75 > >using ifstream extraction loses fraction value... there is way to read line, >and replace each , with . then use istringstream on in and at last use >normal extraction... lot of work - maybe there is other simplier way?? > > > -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Per W. <pw...@ia...> - 2003-11-04 01:02:41
|
For most modern c/c++ libraries it should be enough to change locale (setlocale in ANSI/POSIX) before using the input/output functions. The normal C locale is hard-coded to a dot as decimal separator. /Per W On Mon, 3 Nov 2003, Zodiaq wrote: > Hello all Dev-cpp-users, > > is there a way to force treting , in numbers as . ?? In Poland there is a > strange habit of writing numbers this way: > number,fraction 13,75 > no usual: > number.fraction 13.75 > > using ifstream extraction loses fraction value... there is way to read line, > and replace each , with . then use istringstream on in and at last use > normal extraction... lot of work - maybe there is other simplier way?? > > -- > regards Zodiaq > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > 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...@ac...> - 2003-11-03 22:55:22
|
Hello all Dev-cpp-users, is there a way to force treting , in numbers as . ?? In Poland there is a strange habit of writing numbers this way: number,fraction 13,75 no usual: number.fraction 13.75 using ifstream extraction loses fraction value... there is way to read line, and replace each , with . then use istringstream on in and at last use normal extraction... lot of work - maybe there is other simplier way?? -- regards Zodiaq |
|
From: Nehal S. <ns...@ix...> - 2003-11-03 22:28:21
|
void readS(db1 *a)
{
printf("name:");
scanf("%s",a->name);
printf("age:");
scanf("%d",a->i);
printf("%d",a->i);//to check
}
While scanning the integer value you should do: scanf("%d",&(a->i)); this
should work.
-----Original Message-----
From: vasanthsena x [mailto:vas...@ya...]
Sent: Monday, November 03, 2003 1:46 PM
To: Dev...@li...
Subject: [Dev-C++] another annoying question
Sorry guys its been a long day.In the following
program instead of giving me the value of i, it prints
the adress of i. any thoughts why :( ?
#include <stdio.h>
typedef struct db {
char name[10];
int i;
} db1;
void readS(db1 *a);
void writeS(db1 *a);
main()
{
db1 mydb[20];
db1 *p;
p = mydb;
printf("Enter Data\n");
readS(p);
writeS(p);
system("PAUSE");
return 0;
}
void readS(db1 *a)
{
printf("name:");
scanf("%s",a->name);
printf("age:");
scanf("%d",a->i);
printf("%d",a->i);//to check
}
void writeS(db1 *a)
{
printf("%s,%d\n",a->name,a->i);
}
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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: vasanthsena x <vas...@ya...> - 2003-11-03 21:46:20
|
Sorry guys its been a long day.In the following
program instead of giving me the value of i, it prints
the adress of i. any thoughts why :( ?
#include <stdio.h>
typedef struct db {
char name[10];
int i;
} db1;
void readS(db1 *a);
void writeS(db1 *a);
main()
{
db1 mydb[20];
db1 *p;
p = mydb;
printf("Enter Data\n");
readS(p);
writeS(p);
system("PAUSE");
return 0;
}
void readS(db1 *a)
{
printf("name:");
scanf("%s",a->name);
printf("age:");
scanf("%d",a->i);
printf("%d",a->i);//to check
}
void writeS(db1 *a)
{
printf("%s,%d\n",a->name,a->i);
}
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
|
|
From: Zodiaq <zo...@ac...> - 2003-11-03 21:27:54
|
Hello vasanthsena and all Dev-C++ users, Monday, November 3, 2003, 10:17:01 PM, vasanthsena wrote as follows: vx> Oops I forgot to mention that I am programming in C. Huh, and what about it?? In C you can create dynamic objects from structures... these are without methods and contructor/destructor, but fields are still accessed using . or -> regarding how you created these instances... Struct_name q; q.field_a = 13; Struct_name *q = malloc( sizeof( Struct_name )); q->field_a = 13 free( q ); still - go get good book about C and READ IT! -- regards, Zodiaq |