Re: [Dev-C++] Converting types(How to do it?)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-05-11 09:51:06
|
I'm interested to know why you would add 1 to a char, but you can convert using atoi() it's something like int Buffer[10]; // create a buffer atoi(Buffer, StringName, 10); // Where to store the int, your string to convert, and the base type (10 for decimal). Do a search on google or msdn. >From: "Fernando Correa da Concei;áo" <fer...@te...> >To: dev...@li... >Subject: [Dev-C++] Converting types(How to do it?) >Date: Sat, 10 May 2003 17:08:29 -0300 > >Hi! >I´m trying to use a database, but I need this, I have a field(a year by >example), it´s a char. >What I need is convert it to an int, add +1 and convert again to char. > >Thanks! > > > >------------------------------------------------------- >Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara >The only event dedicated to issues related to Linux enterprise solutions >www.enterpriselinuxforum.com > >_______________________________________________ >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 _________________________________________________________________ Worried what your kids see online? Protect them better with MSN 8 http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059 |