Thanks a lot, I didn't know of toupper.
So what does "const char I = ('i'||'I');" do?
Is it possible to assign multiple characters to one char at all? I suppose you could create a char array...
Type: Posts; User: Mr Newbie
Thanks a lot, I didn't know of toupper.
So what does "const char I = ('i'||'I');" do?
Is it possible to assign multiple characters to one char at all? I suppose you could create a char array...
I want to give a variable a value according to the value of a char within a string.
For example, if (in[12] == z) y = 8;
So what I've done is assign some const chars, and I'm using a switch......
Didn't think of using str [x] in the loop. Silly me. Thanks, that's fixed it!
Bear with me because this is my second program ever...
I compiled and ran the following, but every time you input anything it outputs the ascii drawings (vertically) corresponding to the string...
Another question:
Is it possible to get a switch case statement to execute for each element of an array? For example, in my 256 character string, is it possible for my switch to apply to each of...
Thanks very much. Should've been able to work that out for myself really :rolleyes:.
Hi. I know it's trivial, but when using cout to output stuff, how can you get it to output '\'? Because it seems not to output them because it expects them to be followed by either 'n' or '0' or...