dev-cpp-users Mailing List for Dev-C++ (Page 409)
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: Colin L. <ha...@bl...> - 2003-04-01 12:06:28
|
I agree with the fact that this is really not the place for this kind of discussion, however don't try to threaten anybody on this list... Colin On Tuesday 01 April 2003 11:38, you wrote: > hows this, for every war related/non-devC++ email i get in my inbox, i will > send 10 long emails of garbled text, all thru various SMTP engines > available for download, all with different sizes, sender names, return > addresses, ip origin etc. > > i'm sick of this arrogant stubborness, just accept that everyone else is as > stubborn as all of you and stop bugging the people that are here for C++. > > i'll do it, friends will do it, and so will whoever else wants to. > > PLEASE STOP!!!! You can say "forgive me" while deliberately performing the > transgression. > > give it a rest guys... > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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 |
|
From: Alvin T. <al...@th...> - 2003-04-01 11:45:41
|
> these war debates are like pascal vs c++ or linux vs windows
> - similar in that everyone has his own point of view and
> (rether) nothing will change it...
<troll>
and we all know linux is better than windows.
-alvin
</troll>
|
|
From: Colin L. <ha...@bl...> - 2003-04-01 11:22:39
|
Hello Gabbe, > A few days ago I posted a request on howto develop VST plugins in Dev-C++. > I have had some answers and discussions and as a result I can now > present a first revision of a HowTo On VST Development in Dev-C++ at > http://home.tiscali.se/gali/VST/. Thank you. I can add it to the Documentations section of the Dev-C++ Resource Site if you want. About the vstgui.lib problem, i wasn't able (after really a lot of tweaking) to get it working. I heard that Steinberg is going to release VSTGUI as Open Source soon, so it should be ok then. Greetings, Colin > ys > Gabbe of Sweden > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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 |
|
From: Richard C. <tel...@ya...> - 2003-04-01 11:14:35
|
was just wondering if theres such thing as typecasting in C. i'm reasonably well versed in C++, dont know much C tho, so yeah, there's a suggestion. 1/04/03 12:42:48 PM, "Khalid El-Kary" <kha...@ho...> wrote: >Hi fellows, > >I'm wondering if there's a possible way to turn an integer to its string >representation in C > >//I want to get a string "5" out of f >int f=5; > >thanx in advance. > >Regards, >Khalid Al-Kary |
|
From: <pr...@le...> - 2003-04-01 10:48:20
|
Thanks Richard.
But I don't understand how the input stream being used by getline() (i.e.
cin) reads in spaces and tabs. Any explanations on that?
<code snippet>
std::getline(std::cin, name);
</code snippet>
Regards,
Pranav Negandhi
This email is a natural product. The slight variations in spelling and
grammar enhance its individual character and beauty and are in no
way considered to be flaws or defects.
<snip>
yeah, you've gotten a few emails telling you to uses the getline function
rather tham cin.
basically cin will read the input string up to the first white space, this
is either a space(" ")or a tab(" ") or a enter( "/n" )
getline however will read everything including spaces and tabs up to the
first 'enter' or "endl"
<snip>
|
|
From: Ioannis V. <iv...@em...> - 2003-04-01 10:40:45
|
> -----Original Message----- > From: Daniel Glenfield [mailto:sp...@ho...]=20 > Sent: Tuesday, April 01, 2003 10:08 AM > To: iv...@em...; dev...@li... > Subject: RE: [Dev-C++] integer to string >=20 >=20 > What about itoa and atoi functions? atoi() is ok and conveets a string to int. itoa() does not exist in = standard library. Personally I prefer to use sscanf() and sprintf() for every = such kind of conversion and not these more specialised solutions. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Richard C. <tel...@ya...> - 2003-04-01 10:32:07
|
hows this, for every war related/non-devC++ email i get in my inbox, i will send 10 long emails of garbled text, all thru various SMTP engines available for download, all with different sizes, sender names, return addresses, ip origin etc. i'm sick of this arrogant stubborness, just accept that everyone else is as stubborn as all of you and stop bugging the people that are here for C++. i'll do it, friends will do it, and so will whoever else wants to. PLEASE STOP!!!! You can say "forgive me" while deliberately performing the transgression. give it a rest guys... |
|
From: Mark S. <mar...@li...> - 2003-04-01 09:20:56
|
Apologies if this isn't the place to report bugs. I get the following linker error in ver4.9.7.0 & 4.9.8.0 when compiling a C (no C++) console application with win98: "undefined reference to __gxx_personality_v0 " doing a search I discover that this is mentioned in the libraries libstdc++.a & libsupc++.a in the lib directory. If I add either of these libraries by name in my project options then everything goes OK but the resulting executable is significantly larger than that produced with 4.9.6.0, the .exe produced by linking libsupc++.a is ~30k larger than using libstdc++.a ? Why do I need to manually link these libraries when they reside in the lib directory ? TIA Mark P.S. Thanks for the latest version it produces significantly faster code than ver 4.01 . My application is a serious number cruncher. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 24/02/03 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: Per W. <pw...@ia...> - 2003-04-01 09:14:20
|
Note that while itoa is nonstandard, some implementations take two
parameters, and some take 3.
The third parameter is then number base, i.e. 2 for binary, 8 for octal,
etc.
/Per W
On Tue, 1 Apr 2003, Ricardo L=F3pez Ruiz wrote:
> perhaps this example can help you a little more.
> Ricardo.
>
>
> **********ITOA/ATOI **********
>
> #include <stdio.h>
> #include <stdlib.h>
>
> int main()
> {
> char cad[20];
>
> /* the transformation: integer --> string */
> itoa(2003,cad,10); // 2003 is the number to store in cad[]
> printf(cad); // in decimal base =3D 10.
>
> /* and the inverse transformation: string --> integer */
> printf("\n %d",atoi(cad)); // cad[ ] is transformed to integer
>
> printf("\n\n");
> system("PAUSE");
> return 0;
> }
>
> *************************************
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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
>
|
|
From: Ricardo R. <ri...@po...> - 2003-04-01 08:52:07
|
perhaps this example can help you a little more.
Ricardo.
**********ITOA/ATOI **********
#include <stdio.h>
#include <stdlib.h>
int main()
{
char cad[20];
/* the transformation: integer --> string */
itoa(2003,cad,10); // 2003 is the number to store in cad[]
printf(cad); // in decimal base = 10.
/* and the inverse transformation: string --> integer */
printf("\n %d",atoi(cad)); // cad[ ] is transformed to integer
printf("\n\n");
system("PAUSE");
return 0;
}
*************************************
|
|
From: Per W. <pw...@ia...> - 2003-04-01 08:38:44
|
Your implementation of itoa would leak memory - normally itoa would use a
static buffer that is overwritten at each call.
A better itoa would build the buffer from the end, i.e. *p-- = ch
thereby removing need for reversing the string.
/Per W
On Tue, 1 Apr 2003, Luigi Santillo wrote:
> On Tue, Apr 01, 2003 at 02:42:48AM +0000, Khalid El-Kary wrote:
> > Hi fellows,
> >
> > I'm wondering if there's a possible way to turn an integer to its string
> > representation in C
> >
> > //I want to get a string "5" out of f
> > int f=5;
> >
> > thanx in advance.
> >
> > Regards,
> > Khalid Al-Kary
> >
>
> Hello Khalid,
>
> You have already been supplied with an excellent solution, here is
> another approach, both: less efficient and less elegant; but I'm posting
> it anyway because I feel it is an example some newbies (like me) can
> probably benefit from.
>
> t_itoa.c
> --------
> #include <stdio.h>
> #include <stdlib.h>
> #include "itoa.h"
>
> /********************************************************************/
> int
> main()
> {
> int k = 123; /* integer value to be converted */
> char *s = itoa(k); /* string holding the converted value */
>
> printf("INPUT:\nk = %d\n\n", k);
> printf("OUTPUT:\ns = %s\n\n", s);
> free(s); /* return memory to the system, as soon as you can */
>
> k = -4567; /* a little harder: using a negative number */
> s = itoa(k);
> printf("INPUT:\nk = %d\n\n", k);
> printf("OUTPUT:\ns = %s\n\n", s);
> free(s);
>
> return 0;
> }
> --------
>
>
>
>
>
> itoa.h
> ------
> #ifndef itoa_h
> #define itoa_h
> #pragma defs_in itoa.c /* needed by makefile generator (ignore it) */
> /********************************************************************/
>
> /* turn an integer into a string (i.e. an array) */
> char *
> itoa(int n);
>
> /* invert order of elements in an array */
> char *
> invert(char *s);
>
> /********************************************************************/
> #endif /* not itoa_h */
> ------
>
>
>
>
> itoa.c
> ------
> #include <stdlib.h>
> #include <assert.h>
> #include <string.h>
> #include "itoa.h"
>
> #define MAXSZ 21 /* assuming integer is made of 19 digits + sign */
> /********************************************************************/
> char *
> itoa(int n)
> {
> char * buf = (char *)calloc(MAXSZ, sizeof(char)); /* get memory */
> char *p = buf; /* pointer used to sweep across buffer */
> char neg = 0; /* 1 means that the integer is negative */
>
> assert(buf != 0); /* check if memory was allocated */
>
> if (n < 0) /* negative integer */
> {
> n = -n; /* work on its absolute value */
> neg = 1; /* turn on the flag */
> }
>
> while (n) /* main loop */
> {
> *p++ = '0' + n % 10; /* char for a digit as offset from '0' */
> n /= 10; /* drop last character */
> }
>
> if (neg) /* append a negative sign */
> *p++ = '-';
>
> *p = '\0'; /* terminate string */
> return invert(buf);
> }
>
> /********************************************************************/
> char *
> invert(char *s)
> {
> char *p = s + strlen(s); /* points the terminating '\0' */
> char *q = s - 1; /* points one before first char */
>
> while (--p > ++q)
> {
> char c = *p; /* classic code used to swap characters */
> *p = *q;
> *q = c;
> }
>
> return s;
> }
> ------
>
>
> Regards
> --
> >> gisan >>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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
>
|
|
From: Luigi S. <gi...@li...> - 2003-04-01 08:23:18
|
On Tue, Apr 01, 2003 at 02:42:48AM +0000, Khalid El-Kary wrote:
> Hi fellows,
>
> I'm wondering if there's a possible way to turn an integer to its string
> representation in C
>
> //I want to get a string "5" out of f
> int f=5;
>
> thanx in advance.
>
> Regards,
> Khalid Al-Kary
>
Hello Khalid,
You have already been supplied with an excellent solution, here is
another approach, both: less efficient and less elegant; but I'm posting
it anyway because I feel it is an example some newbies (like me) can
probably benefit from.
t_itoa.c
--------
#include <stdio.h>
#include <stdlib.h>
#include "itoa.h"
/********************************************************************/
int
main()
{
int k = 123; /* integer value to be converted */
char *s = itoa(k); /* string holding the converted value */
printf("INPUT:\nk = %d\n\n", k);
printf("OUTPUT:\ns = %s\n\n", s);
free(s); /* return memory to the system, as soon as you can */
k = -4567; /* a little harder: using a negative number */
s = itoa(k);
printf("INPUT:\nk = %d\n\n", k);
printf("OUTPUT:\ns = %s\n\n", s);
free(s);
return 0;
}
--------
itoa.h
------
#ifndef itoa_h
#define itoa_h
#pragma defs_in itoa.c /* needed by makefile generator (ignore it) */
/********************************************************************/
/* turn an integer into a string (i.e. an array) */
char *
itoa(int n);
/* invert order of elements in an array */
char *
invert(char *s);
/********************************************************************/
#endif /* not itoa_h */
------
itoa.c
------
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "itoa.h"
#define MAXSZ 21 /* assuming integer is made of 19 digits + sign */
/********************************************************************/
char *
itoa(int n)
{
char * buf = (char *)calloc(MAXSZ, sizeof(char)); /* get memory */
char *p = buf; /* pointer used to sweep across buffer */
char neg = 0; /* 1 means that the integer is negative */
assert(buf != 0); /* check if memory was allocated */
if (n < 0) /* negative integer */
{
n = -n; /* work on its absolute value */
neg = 1; /* turn on the flag */
}
while (n) /* main loop */
{
*p++ = '0' + n % 10; /* char for a digit as offset from '0' */
n /= 10; /* drop last character */
}
if (neg) /* append a negative sign */
*p++ = '-';
*p = '\0'; /* terminate string */
return invert(buf);
}
/********************************************************************/
char *
invert(char *s)
{
char *p = s + strlen(s); /* points the terminating '\0' */
char *q = s - 1; /* points one before first char */
while (--p > ++q)
{
char c = *p; /* classic code used to swap characters */
*p = *q;
*q = c;
}
return s;
}
------
Regards
--
>> gisan >>
|
|
From: Per W. <pw...@ia...> - 2003-04-01 07:52:50
|
atoi() is ok but wrong direction. itoa() is not always available. /Per W On Tue, 1 Apr 2003, Daniel Glenfield wrote: > What about itoa and atoi functions? > > > > > >From: "Ioannis Vranos" <iv...@em...> > >To: "Dev-C++ Mailing List" <dev...@li...> > >Subject: RE: [Dev-C++] integer to string > >Date: Tue, 1 Apr 2003 06:13:20 +0300 > > > > > -----Original Message----- > > > From: dev...@li... > > > [mailto:dev...@li...] On Behalf > > > Of Khalid El-Kary > > > Sent: Tuesday, April 01, 2003 5:43 AM > > > To: Dev...@li... > > > Subject: [Dev-C++] integer to string > > > > > > > > > Hi fellows, > > > > > > I'm wondering if there's a possible way to turn an integer to > > > its string > > > representation in C > > > > > > //I want to get a string "5" out of f > > > int f=5; > > > > > > thanx in advance. > > > > > > Regards, > > > Khalid Al-Kary > > > > > > > >#include <stdio.h> > > > >/* ... */ > > > >int f=7; > > > >char s[5]; > > > >sprintf(s, "%d", f); > > > > > > > >Ioannis Vranos > > > >* Programming pages: http://www.noicys.freeurl.com > >* Alternative URL: http://run.to/noicys > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: ValueWeb: > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > >No other company gives more support or power for your dedicated server > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > >_______________________________________________ > >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 > > > _________________________________________________________________ > Hotmail messages direct to your mobile phone > http://www.msn.co.uk/msnmobile/mobilehotmail > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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 > |
|
From: Yeoh H. <ye...@ye...> - 2003-04-01 07:52:12
|
Hi everyone, I've created a DevPak for IBPP 2.0.6.1, a C++ class library to access Firebird 1.0 database servers (and also Interbase 6.0). Here's an extract from IBPP's site: <extract> It is a thin C++ encapsulation of the InterBase client C API (DSQL). For people who like or require for some projects a low-level access to their InterBase servers, independant of any RAD tool or other specific environments, IBPP should be usefull, provided they can code in C++. There are a number of other tools to access InterBase servers from your code. I personnally know of IBObjects and IBX. In our own projects we needed something even simpler than those nice products and NOT tied to a RAD tool or Visual Class Library, by any name. IBPP is this. And probably nothing more. </extract> I've also created Dev-C++ projects for the two test programs included with the IBPP source. The DevPak was tested using Dev-C++ 4.9.8.0 (GCC3.2). How do I make ibpp-2.0.6.1.DevPak and devcpp-fbtests.zip available for dowload via vUpdate? Thanks. :-) Best Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ICT eBooks by Yeoh HS Free Downloads at http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ |
|
From: Dany P. W. <da...@qu...> - 2003-04-01 07:12:07
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of pr...@le... > Sent: Tuesday, 1 April 2003 6:06 p.m. > To: Dany P. Wu > Cc: dev...@li... > Subject: RE: [Dev-C++] Spaces in strings? > > > > Thanks Dany. But doesn't this limit my code in some manner? > I've been brought to believe that strings are better than > chars since they automatically adjust to the size of the input. Ok everyone, I think we both need help to answer this. I am also fairly new to C++ and that has always been the way I handle strings. So far I have never had the need for very long strings. What sort of length are we talking about here? Any other suggestions anyone? Cheers, Dany. -- This mail is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects. |
|
From: Daniel G. <sp...@ho...> - 2003-04-01 07:07:42
|
What about itoa and atoi functions? >From: "Ioannis Vranos" <iv...@em...> >To: "Dev-C++ Mailing List" <dev...@li...> >Subject: RE: [Dev-C++] integer to string >Date: Tue, 1 Apr 2003 06:13:20 +0300 > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Khalid El-Kary > > Sent: Tuesday, April 01, 2003 5:43 AM > > To: Dev...@li... > > Subject: [Dev-C++] integer to string > > > > > > Hi fellows, > > > > I'm wondering if there's a possible way to turn an integer to > > its string > > representation in C > > > > //I want to get a string "5" out of f > > int f=5; > > > > thanx in advance. > > > > Regards, > > Khalid Al-Kary > > > >#include <stdio.h> > >/* ... */ > >int f=7; > >char s[5]; > >sprintf(s, "%d", f); > > > >Ioannis Vranos > >* Programming pages: http://www.noicys.freeurl.com >* Alternative URL: http://run.to/noicys > > > > >------------------------------------------------------- >This SF.net email is sponsored by: ValueWeb: >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! >No other company gives more support or power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >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 _________________________________________________________________ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile/mobilehotmail |
|
From: <pr...@le...> - 2003-04-01 05:56:10
|
Thanks Dany. But doesn't this limit my code in some manner? I've been
brought to believe that strings are better than chars since they
automatically adjust to the size of the input.
Regards,
Pranav Negandhi
This email is a natural product. The slight variations in spelling and
grammar enhance its individual character and beauty and are in no
way considered to be flaws or defects.
<snip>
The best thing is to use a char array. Try this one:
#include <iostream>
#include <string>
using namespace std;
int main()
{
char cName[80];
cout << "Enter some words\n";
cin.getline(cName,80);
cout << "The word is " << cName << endl;
system("pause");
}
<snip>
|
|
From: <pr...@le...> - 2003-04-01 05:27:22
|
Can anyone tell me how to have string variables contain spaces? I'm using
the following code to let the user enter his name. It works fine. But the
string gets truncated at the first space that it encounters.
Hence "Jack the Ripper" gets cut short to "Jack" and "Mary Magdalene" turns
to "Mary".
Here's my code.
#include <iostream>
using namespace std;
int main()
{
string name;
cout << "Please enter your name: ";
cin >> name;
cout << "Hello " + name;
}
Regards,
Pranav Negandhi
This email is a natural product. The slight variations in spelling and
grammar enhance its individual character and beauty and are in no
way considered to be flaws or defects.
|
|
From: Daniel K. O. <dan...@ya...> - 2003-04-01 04:32:00
|
Hello I remember of some messages about using CVS on Dev-C++, but I don't remember any useful answer; the mailing list search on SourceForge isn't working. So, here are my question: 1. Does the CVS functionality even works? 2. Does it works on SF's CVS? 3. If the 'cvs.exe' that I got from http://www.cvshome.org is the only one that doesn't work with Dev-C++, where can I get one that works? (Using just command-line, it also doesn't work) I'm using Win98 SE, and CVS 1.11.5 Daniel K. O. |
|
From: Ioannis V. <iv...@em...> - 2003-04-01 03:13:29
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Khalid El-Kary > Sent: Tuesday, April 01, 2003 5:43 AM > To: Dev...@li... > Subject: [Dev-C++] integer to string > > > Hi fellows, > > I'm wondering if there's a possible way to turn an integer to > its string > representation in C > > //I want to get a string "5" out of f > int f=5; > > thanx in advance. > > Regards, > Khalid Al-Kary #include <stdio.h> /* ... */ int f=7; char s[5]; sprintf(s, "%d", f); Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Khalid El-K. <kha...@ho...> - 2003-04-01 02:42:57
|
Hi fellows, I'm wondering if there's a possible way to turn an integer to its string representation in C //I want to get a string "5" out of f int f=5; thanx in advance. Regards, Khalid Al-Kary _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: Zodiaq <zo...@ac...> - 2003-03-31 23:41:11
|
Hello Mike and all Dev-C++ users, Tuesday, April 1, 2003, 12:00:05 AM, Mike wrote as follows: MM> Sorry guys, but I don't have time to filter through all the war debate MM> stuff. I wanted to learn about Dev_C++. MM> Until the fighting stops, I have... MM> UNSUBSCRIBED! LOL! why so sudden steps? As some people see this useless stuff about war is just ending (I mean debates here) and I'm glad for that... as for post I read first ~4 of them and when I see new on with one of two subjects I just delete it - you should do the same... these war debates are like pascal vs c++ or linux vs windows - similar in that everyone has his own point of view and (rether) nothing will change it... so I don't worry, why should you (or, as I think, many other people that subscribes this mailing list) ??? Just ignore this spam and go on with work... -- regards, Zodiaq |
|
From: Mike M. <MM...@ci...> - 2003-03-31 22:00:08
|
Sorry guys, but I don't have time to filter through all the war debate stuff. I wanted to learn about Dev_C++. Until the fighting stops, I have... UNSUBSCRIBED! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/03 |
|
From: Louis G. <lg...@ya...> - 2003-03-31 19:45:15
|
Come on guys, lets quit this. This is the 16th "Forgive me Again" thread. Take it to another website. There are hundreds of sites out there for this topic. --- Ioannis Vranos <iv...@em...> wrote: > First you create the problems (like Saddam), then you replace them with > others. In the meantime people get killed (I wonder if you would be able > to > cut the guts from another person who fights for his country, with a > knife in > the batttlefield). > > > I think US have got out of control (for accuracy it never had one, US is > a > warzone itself, unbelievable crimes, children eating their parrents > etc). > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys > > > > > > > -----Original Message----- > From: Santiago Mallea [mailto:sa...@ho...] > Sent: Monday, March 31, 2003 6:51 PM > To: iv...@em...; dev...@li... > Subject: RE: [Dev-C++] Forgive me again! > > > > > > There you go again, trying to change what was said, trying to change > reality. That's your infinite loop. No one said about Americans being > the > master race. All was said is that the US has very good reasons for doing > what is doing, that the brainless "peace" stupidity should stop now. And > the > people understand and get used to the fact that the US will from now on > take > proactive steps (based on facts) to defend iftself, like it or not, as > it > was shown at the UN. > > > God Bless America. > My regards > Santiago > PS: Last time France decided to wait, there was a German flag parade in > Paris... > > > > > > MSN 8 with e-mail virus protection service: 2 months FREE* > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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 __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
|
From: Gabriel L. <gab...@sv...> - 2003-03-31 18:18:00
|
A few days ago I posted a request on howto develop VST plugins in Dev-C++. I have had some answers and discussions and as a result I can now present a first revision of a HowTo On VST Development in Dev-C++ at http://home.tiscali.se/gali/VST/. ys Gabbe of Sweden |