If I understand you correctly, then all you need to do is this:
int i = 65;
char c = i;
// Then as proof...
printf("%c, %d\n",c,c);
printf("%c, %d\n",i,i);
Hope this is what you meant.
-Lukas
On Mon, 24 Jan 2005 15:24:34 -0800 (PST), Jason Benjamin
<red...@ya...> wrote:
> I'm able to convert a character into its corresponding
> ASCII code, but what if I want to do it the other way
> around? What is the method for that if there is one?
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> 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
>
|