Having a compile problem and would like to know what I did wrong...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
static *char CharArrayToLower(*char Char)
{
for (int i = 0;true;++i)
{
switch (Char[i])
{
case 'A':
Char[i]=a; break;
case 'B':
Char[i]=b; break;
case 'C':
Char[i]=c; break;
case 'D':
Char[i]=d; break;
case 'E':
Char[i]=e; break;
case 'F':
Char[i]=f; break;
case 'G':
Char[i]=g; break;
case 'H':
Char[i]=h; break;
case 'I':
Char[i]=i; break;
case 'J':
Char[i]=j; break;
case 'K':
Char[i]=k; break;
case 'L':
Char[i]=l; break;
case 'M':
Char[i]=m; break;
case 'N':
Char[i]=n; break;
case 'O':
Char[i]=o; break;
case 'P':
Char[i]=p; break;
case 'Q':
Char[i]=q; break;
case 'R':
Char[i]=r; break;
case 'S':
Char[i]=s; break;
case 'T':
Char[i]=t; break;
case 'U':
Char[i]=u; break;
case 'V':
Char[i]=v; break;
case 'W':
Char[i]=w; break;
case 'X':
Char[i]=x; break;
case 'Y':
Char[i]=y; break;
case 'Z':
Char[i]=z; break;
case '\0':
return Char;
default:
break;
}
}
}
|
My compiler says "expected unqualified-id before 'char'"
Last edited on
Try chainging the declaration of your function to this:
static char* CharArrayToLower(char* Char)
that did it... thanks muchly : )
Topic archived. No new replies allowed.