I
IamZadok
Hi
I was wondering if anyone knew how to convert a string or an integer
into a Static Char.
Thx
I was wondering if anyone knew how to convert a string or an integer
into a Static Char.
Thx
Hi
I was wondering if anyone knew how to convert a string or an integer
into a Static Char.
Hi
I was wondering if anyone knew how to convert a string or an integer
into a Static Char.
Thx
Thomas Matthews said:Try this:
static char c;
int main(void)
{
c = 'A'; // Converts 'A' into a static char.
c = '1'; // Converts a literal numeric into a char.
return 0;
}
If this doesn't satisfy you, please be more descriptive
as to what you are seeking.
Howard said:A char (watch your capitalization, it's important in C++) is a single
character, and is not going to be able to hold an integer (if it's outside
the range of 0..9)
Ioannis Vranos said:I am sure you did not mean what it sounds that you said, but we have to be
technically correct.![]()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.