Search:

Type: Posts; User: Mr Newbie

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    15,547

    Thanks a lot, I didn't know of toupper. So...

    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...
  2. Replies
    3
    Views
    15,547

    'Duplicate case value' error with chars.

    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......
  3. Replies
    9
    Views
    1,129

    Didn't think of using str [x] in the loop. Silly...

    Didn't think of using str [x] in the loop. Silly me. Thanks, that's fixed it!
  4. Replies
    9
    Views
    1,129

    Bear with me because this is my second program...

    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...
  5. Replies
    9
    Views
    1,129

    Another question: Is it possible to get a...

    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...
  6. Replies
    9
    Views
    1,129

    Thanks very much. Should've been able to work...

    Thanks very much. Should've been able to work that out for myself really :rolleyes:.
  7. Replies
    9
    Views
    1,129

    Absolute newbie question

    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...
Results 1 to 7 of 7