Original Post
Hi, i just wanted to know if it is possible to do something with the switch loop: i'm using an example because i can't explain it otherwise ^^; So this is the way I am capable of doing it, but it can be kind of long...
string text;
char imputKeyboardValue
switch (imputKeyboardValue)
{
case 'A':
strcat(text,"A");
break;
case'B':
break;
strcat(text,"B");
break;
case'C':
strcat(text,"C");
break;
}
And so on for Each Signle LeTtEr !! Now here is the more efficient way!! Of course it does not work, but is it possible to do something like this??
string text;
char imputKeyboardValue
switch (imputKeyboardValue)
{
case 'virtualChar':
strcat(text,"virutalChar");
}
ye, it looks kind of strange but I hope you got the idea.. :D Thanks !!!