dev-cpp-users Mailing List for Dev-C++ (Page 701)
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: Elias P. <eli...@ao...> - 2001-04-20 15:40:11
|
> There is a memorly leak somewhere in the program. After > using it for some time, I get a message box that reads "Out > of Memory" and all I can do is Ctrl+Alt+Del and kill the > program. That could be why yours bogs down like that. You could also try to clear the files history. ( But it won't help against the memory leak. Hopefully the next version of Dev-C++ will fix that. ) Elias Pschernig |
|
From: Schedler, K. <Kur...@hi...> - 2001-04-20 15:07:07
|
There is a memorly leak somewhere in the program. After using it for = some time, I get a message box that reads "Out of Memory" and all I can do = is Ctrl+Alt+Del and kill the program. That could be why yours bogs down = like that. -----Original Message----- From: Albert Vilella Bertran [mailto:vil...@ya...] Sent: Friday, April 20, 2001 5:34 AM To: dev...@li... Subject: [Dev-C++] While clicking on "&File" menu, it lasts more and more Hi, I don't know if anybody else has experienced this problem, but after = some time using DevC++ 4.01, when I click to "&File" to access the file = options, I have to wait for some seconds until the menu is displayed.=20 When I write this, I have timed 25 seconds !!!. Does anybody know anything about this problem? thanks _______________________________________________________________ Do You Yahoo!? Env=EDa mensajes instant=E1neos y recibe alertas de correo con=20 Yahoo! Messenger - http://messenger.yahoo.es _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users "The sender believes that this E-mail and any attachments were free of = any virus, worm, Trojan horse, and/or malicious code when sent. This = message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts = full responsibility for taking protective and remedial action about viruses = and other defects. The sender's employer is not liable for any loss or = damage arising in any way from this message or its attachments." |
|
From: Schedler, K. <Kur...@hi...> - 2001-04-20 15:05:21
|
It means your function is expecting a pointer to a character (char *) and you are sending it a character (char). A char* holds the address of a character. What you need to do is call your function like this: result(&mychar, myint). The '&' means 'address of'. Either that or change the definition of your function to take a char instead of a char*. "Casting" is forcing a variable of one type to be considered another type. For example, if you had an integer pointer (int*) variable, ptr, you could force it to be seen as a character pointer (char*) by 'casting' it like this: (char *)ptr. Since you were passing a variable to a function that was expecting a different type, the compiler assumed that you had forgotten to cast your variable explicitly to the expected type. -----Original Message----- From: Ruth Aviton [mailto:av...@01...] Sent: Friday, April 20, 2001 9:02 AM To: dev...@li... Subject: [Dev-C++] compileresults hi everybody, I am just a beginner in programming and I have two questions: 1. When I compile a small, simple program i get a compile message as follows. I have no idea what it means and have no idea where to start looking! passing `char' to argument 1 of `result(char *, int)' lacks a cast This happens when i try to call a function. 2. Is there any place where i can get a explanation on what the compiler results mean ? Thank you! Ruth _________________________________________________ IncrediMail - Email has finally evolved - <http://www.incredimail.com/imstampa.html> Click Here "The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. The sender's employer is not liable for any loss or damage arising in any way from this message or its attachments." |
|
From: Ruth A. <av...@01...> - 2001-04-20 14:56:15
|
hi everybody, I am just a beginner in programming and I have two questions:=20 1. When I compile a small, simple program i get a compile message as foll= ows. I have no idea what it means and have no idea where to start looking= ! passing `char' to argument 1 of `result(char *, int)' lacks a cast Th= is happens when i try to call a function. 2. Is there any place where i can get a explanation on what the compiler = results mean ?=20 Thank you! Ruth |
|
From: <vil...@ya...> - 2001-04-20 12:37:31
|
Hi, I don't know if anybody else has experienced this problem, but after some time using DevC++ 4.01, when I click to "&File" to access the file options, I have to wait for some seconds until the menu is displayed. When I write this, I have timed 25 seconds !!!. Does anybody know anything about this problem? thanks _______________________________________________________________ Do You Yahoo!? Envía mensajes instantáneos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es |
|
From: <vil...@ya...> - 2001-04-20 12:26:24
|
Hi, I have been looking at The GNU C Library Help, and trying to compile with "-lmcheck" as is explained in "Heap Consistency Checking": " ... The easiest way to arrange to call mcheck early enough is to use the option -lmcheck when you link your program; then you don't need to modify your program source at all. ..." I don't succeed, because I don't have several files in a project, I only have one file to compile and I put "-lmcheck" in "Add the following commands when calling compiler" in the Compiler Options, I dunno how to do it. Thanks in advance _______________________________________________________________ Do You Yahoo!? Envía mensajes instantáneos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es |
|
From: <bis...@bt...> - 2001-04-20 11:38:53
|
Hi On further investigation, If I set GCC_EXEC_PREFIX correctly and add a '\' at teh end of the path, this error goes away, only to appear when the '-B<GCC Path>' is used. This seems to be an OK workaround; unfortunately, there does not seem to be a way to remove this without manually editing the Makefile. Can anyone suggest an alternative ? Rgds. Biswa. > -----Original Message----- > From: bis...@bt... > [mailto:bis...@bt...] > Sent: 20 April 2001 12:03 > To: dev...@li... > Cc: web...@bl... > Subject: [Dev-C++] GCC_EXEC_PREFIX > > > Hi all > > I've been trying to use Dev-C++ with the latest MingW > snapshot but have been > running into problems. The error comes from the pre-processor; namely: > > cpp: unrecognized option `-remap' > > Doing some tests, this only occurs when the variable > GCC_EXEC_PREFIX is set. > I undet the variable and ran make from the command line, and > everything went > fine. However, when I run it from Dev-C++, the same error > occurs again, > which has led me to believe that Dev-C++ automatically sets > the variable. > Since this si not a registry entry, I'm inclined to think that this is > hard-coded into the executable. Can the Dev-C++ developers > shed some light > into this, or suggest a workaround ? > > Regards. > Biswa. > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <bis...@bt...> - 2001-04-20 11:08:33
|
Hi all I've been trying to use Dev-C++ with the latest MingW snapshot but have been running into problems. The error comes from the pre-processor; namely: cpp: unrecognized option `-remap' Doing some tests, this only occurs when the variable GCC_EXEC_PREFIX is set. I undet the variable and ran make from the command line, and everything went fine. However, when I run it from Dev-C++, the same error occurs again, which has led me to believe that Dev-C++ automatically sets the variable. Since this si not a registry entry, I'm inclined to think that this is hard-coded into the executable. Can the Dev-C++ developers shed some light into this, or suggest a workaround ? Regards. Biswa. |
|
From: Purohit P. J.. <pra...@si...> - 2001-04-20 07:03:39
|
Hello,
To use a number backward first you need to separare the digits of =
the no.
To do this say you have nNo=3D5234
To separate thousands digit ie 5 thousnad_digit =3D nNo/1000;
To get the hundred digit ie 2 hunreds_digit =3D =
(nNo%1000)/100;
( In above nNo%1000 will give 234 and then 234/100 will give =
2 )
To get tens digit ie 3 tens_digit =3D =
(nNo%100)/10;
( In above nNo%100 will give 34 and then 34/10 will give 3 )
To get the units digit ie 4 unit_digit =3D (nNo%10);
( In Above nNo%10 Will give 4 )
% is Called MODULUS OPERATOR and it give remainder of a =
division.
Now you have separated all the digits of original no now to revert =
the no. simply change the units digit to thousands digit,
tens digit to hundreds digit, hundreds digit to tens digit, thousands =
digit to unit digit. The nos get reversed.
=20
RevNo =3D unit_digit*1000 + tens_digit*100 + hundreds_digit*10 + =
thousand_digit ;
=20
( This above expression is equal to RevNo =3D 4*1000 + 3*100 =
+ 2*10 + 5 ; therefore RevNo=3D4325 )
Haha we reversed the no.
Bye.,
Prahlad Purohit
----- Original Message -----=20
From: "Lorenzo" <co...@in...>
To: <dev...@li...>
Sent: Thursday, April 19, 2001 5:21 PM
Subject: Re: [Dev-C++] Number backwards?
>=20
>=20
> > How do I do if I want to use a number backwards?
> > For example: If I give the variable 'n' the number 12345
> > and want to use it as 54321.
>=20
> WHY?
> Though you can convert int to string with itoa and use the strrev to =
invert
> order of character and convert string to int with atoi.
>=20
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: <jos...@ya...> - 2001-04-20 07:01:58
|
Daniel: En esta dirección http://www.programmersheaven.com/search/Download.asp?FileID=486 puedes descargar el archivo bitmap.zip. Es gratuito y viene con todo el código fuente. Los formatos de archivo con los que trabaja son bmp, ico, pcx y gif. Respecto a mng no tengo ni idea. Sólo conozco el formato png. Espero que la información te haya servido de ayuda. Un saludo. Chemanuel --- "Daniel_Peñaloza_Egas" <dpe...@ta...> escribió: > > > Hola Gurus!!! > Necesito ingresar un gif animado o en su defecto un grafico mng > en una > ventana de dialogo, y no se como hacerlo, si tienen alguna idea oir > favor > necesito su ayuda. > Daniel Peñaloza > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _______________________________________________________________ Do You Yahoo!? Envía mensajes instantáneos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es |
|
From: Yeoh H. <ye...@ya...> - 2001-04-20 01:49:30
|
Hi, I do recall that there is a web site that contains 32 tutorial lessons (plus sample code) on OpenGL programming using C++. Do a search for Jeff Molofee's OpenGL Windows Tutorial. The site URL is nehe.gamedev.net Yeoh ----- Original Message ----- From: Max - V13 <ma...@va...> To: <dev...@li...> Sent: Friday, April 20, 2001 1:22 PM Subject: Re: [Dev-C++] Direct3D...OpenGL? > > Hey Everyone, > > I really don't know what's easier or what's possible with C++, > > though I've seen people post links to a few sites that had some pretty > > nice tutorials (that I quickly took a look at). > > > > If anyone could post a few of those links, I'd appreciate it > > very much. As well, if anyone could give any advice on what's easier > > and such, or how I should start going about this, I'd appreciate that > > very much as well. Thank you for any of your help. =D > > > > Jay Silverman > <snipped> _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: <dpe...@ta...> - 2001-04-19 21:22:13
|
Hola Gurus!!!
Necesito ingresar un gif animado o en su defecto un grafico mng en=
una
ventana de dialogo, y no se como hacerlo, si tienen alguna idea oir fav=
or
necesito su ayuda.
Daniel Pe=F1aloza
=
|
|
From: <Dou...@ao...> - 2001-04-19 20:37:20
|
getline is a C++ function defined for the string class. You will need to include <string>. |
|
From: Max - V. <ma...@va...> - 2001-04-19 20:27:17
|
> Hey Everyone, > I really don't know what's easier or what's possible with C++, > though I've seen people post links to a few sites that had some pretty > nice tutorials (that I quickly took a look at). > > If anyone could post a few of those links, I'd appreciate it > very much. As well, if anyone could give any advice on what's easier > and such, or how I should start going about this, I'd appreciate that > very much as well. Thank you for any of your help. =D > > Jay Silverman Well, I'll recommend you my own site: www.vault13.cjb.net You can find 6 tutorials on OpenGL, which will guide you from total beginning of 3d graphics to some more advanced stuff. However, those tutorials still provide only some basic functionality of OpenGL(which is at my opinion much much easier to learn and use than D3D), but from the other part of the message it seems to me that this would be enough for you. And, feel free to ask me any additional questions or anything. I'd be glad to answer. Also, the cjb server is often offline, so if the above adress doesn't work you can try: www.inet.hr/~rutomic/index.php3 And my e-mail is: ma...@va... Good luck! Max |
|
From: Jay S. <mys...@op...> - 2001-04-19 19:24:21
|
Hey Everyone, As my final for a course in school I want to use some type of 3D graphics (D3D? OpenGL?) to just really do anything, maybe make and move a few 3D shapes and the such, or as much as I can learn. I really don't know what's easier or what's possible with C++, though I've seen people post links to a few sites that had some pretty nice tutorials (that I quickly took a look at). If anyone could post a few of those links, I'd appreciate it very much. As well, if anyone could give any advice on what's easier and such, or how I should start going about this, I'd appreciate that very much as well. Thank you for any of your help. =D Jay Silverman |
|
From: Jesper E. <hag...@ho...> - 2001-04-19 16:45:16
|
Its because I'm working on a program that find a palindromnumber and to do that I need to have this function. Thats why /Thanks for the help > > My function is much more effective than the above way. > > You are right!! congratulations i have answered this because i don't know > how Jesper Ekberg wants to use this function. > And i ask again: > Jesper Ekberg why? :-) > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Lorenzo <co...@in...> - 2001-04-19 14:47:30
|
> My function is much more effective than the above way. You are right!! congratulations i have answered this because i don't know how Jesper Ekberg wants to use this function. And i ask again: Jesper Ekberg why? :-) |
|
From: Bolek V. <vr...@pa...> - 2001-04-19 14:27:55
|
BTW, you can modify my function to revert the number in any base:
unsigned backwards( unsigned n, unsigned base) throw( invalid_argument)
// Reverse order of digits of n in base base
{
if (base < 2) throw invalid_argument( "Base must be > 1");
unsigned result = 0;
while (n > 0) {
result = base*result + n % base;
n = n / base;
}
return result;
}
Works for any base > 2, even for 312, for example.
However, it has a disadvantage to converting via string. If you have a
number like 12345000 and want 00054321, you get just 54321 - unless you
set the output field width properly which requires further algorithm.
--
============================================================
Ing. Boleslav Vrany
Stanice techniku DDM hl. m. Prahy
Pod Juliskou 2a
Praha 6 - Dejvice
16000
Czech Republic
tel. (420 2) 243 10 240
|
|
From: Bolek V. <vr...@pa...> - 2001-04-19 14:09:47
|
> > How do I do if I want to use a number backwards?
> > For example: If I give the variable 'n' the number 12345
> > and want to use it as 54321.
>
> WHY?
> Though you can convert int to string with itoa and use the strrev to invert
> order of character and convert string to int with atoi.
My function is much more effective than the above way. It doesn't need
auxiliary arrays and works in a very straightforward way. The only thing
you must take care of is that if you want to use it for signed numbers
then:
a) I am not sure about behaviour of the % operator for negative numbers.
b) abs(minimum int, long, ...) might be > maximum int, long, ... => you
cannot simply check the sign and convert -number
Moreover - itoa is not a part of C/C++ standard.
--
============================================================
Ing. Boleslav Vrany
Stanice techniku DDM hl. m. Prahy
Pod Juliskou 2a
Praha 6 - Dejvice
16000
Czech Republic
tel. (420 2) 243 10 240
|
|
From: Ioannis V. <no...@ya...> - 2001-04-19 13:37:21
|
gets() must be provided with a pointer to allocated space either a static array or a dynamic allocated "array" on the free store (malloced, e.t.c.). If the characters read by gets() are more than the space allocated you ge= t into problems. If you want to guarantee that the length of the string is = not more than the allocated space use fgets(). Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of > Albert Vilella Bertran > Sent: Thursday, April 19, 2001 11:10 AM > To: dev...@li... > Subject: [Dev-C++] gets,fgets,getline > > > I have experienced problems with the function "gets". > It seems that in my program is using memory addresses that shouldn't us= e > because it writes on some of my dynamic memory space. > > I have read the "The GNU C Library" and while trying to use > "getline" instead > of "gets", it seems that getline is not in "stdio.h". In fact, > searching for it > in "stdio.h" like >Ctrl+F-> "getline", it doesn't found it. > > I dunno what's happening. > > Does anybody know anything I can try? > > > _______________________________________________________________ > Do You Yahoo!? > Env=EDa mensajes instant=E1neos y recibe alertas de correo con > Yahoo! Messenger - http://messenger.yahoo.es > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Lorenzo <co...@in...> - 2001-04-19 11:51:57
|
> How do I do if I want to use a number backwards? > For example: If I give the variable 'n' the number 12345 > and want to use it as 54321. WHY? Though you can convert int to string with itoa and use the strrev to invert order of character and convert string to int with atoi. |
|
From: Bolek V. <vr...@pa...> - 2001-04-19 11:47:01
|
> How do I do if I want to use a number backwards?
> For example: If I give the variable 'n' the number 12345
> and want to use it as 54321. In cout for example.
unsigned backwards( unsigned n)
// Reverse order of digits (in decadic)
{
unsigned result = 0;
while (n > 0) {
result = 10*result + n % 10;
n = n / 10;
}
return result;
}
--
============================================================
Ing. Boleslav Vrany
Stanice techniku DDM hl. m. Prahy
Pod Juliskou 2a
Praha 6 - Dejvice
16000
Czech Republic
tel. (420 2) 243 10 240
|
|
From: Bolek V. <vr...@pa...> - 2001-04-19 11:37:24
|
> I have experienced problems with the function "gets".
> It seems that in my program is using memory addresses that shouldn't use
> because it writes on some of my dynamic memory space.
gets doesn't test the size of the input buffer. The buffer must be long
enough to hold all input characters.
> I have read the "The GNU C Library" and while trying to use "getline" instead
> of "gets", it seems that getline is not in "stdio.h". In fact, searching for it
> in "stdio.h" like >Ctrl+F-> "getline", it doesn't found it.
According to the standard getline is in <string>. However, this is a C++
only function that reads the string class object from objective streams.
I don't know if there is any getline for char * in the GNU C library -
if so, it might be anywhere.
--
============================================================
Ing. Boleslav Vrany
Stanice techniku DDM hl. m. Prahy
Pod Juliskou 2a
Praha 6 - Dejvice
16000
Czech Republic
tel. (420 2) 243 10 240
|
|
From: Jesper E. <hag...@ho...> - 2001-04-19 11:25:01
|
How do I do if I want to use a number backwards? For example: If I give the variable 'n' the number 12345 and want to use it as 54321. In cout for example. Can i retype it or what? |
|
From: Ioannis V. <no...@ya...> - 2001-04-19 10:34:24
|
There is no getline() in the C standard library. There are gets() and fgets() to read lines. Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of > Albert Vilella Bertran > Sent: Thursday, April 19, 2001 11:13 AM > To: dev...@li... > Subject: [Dev-C++] Again with: gets,fgets,getline > > > <I have experienced problems with the function "gets". > <It seems that in my program is using memory addresses that shouldn't u= se > because <it writes on some of my dynamic memory space. > < > <I have read the "The GNU C Library" and while trying to use > "getline" instead > of <"gets", it seems that getline is not in "stdio.h". In fact, > searching for > it in <"stdio.h" like >Ctrl+F-> "getline", it doesn't found it. > > <I dunno what's happening. > > <Does anybody know anything I can try? > > Here I have an example: > > /*------------------------------------------------------*/ > > #include <stdio.h> > > > int main() > { > char pep[255],pitu[255],nitu[255],*pt,*ptg; > int i; > FILE *fp; > > printf("Write something\n"); > gets(pep); > printf("Write something more\n"); > fgets(pitu,255,fp); > printf("Write something more again\n"); > pt =3D (char)malloc(256*sizeof(char)); > getline(pt,255,fp); > > system("PAUSE"); > return 0; > } > > /*------------------------------------------------------*/ > > > > _______________________________________________________________ > Do You Yahoo!? > Env=EDa mensajes instant=E1neos y recibe alertas de correo con > Yahoo! Messenger - http://messenger.yahoo.es > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |