I agree.
To the OP, you don't need to be able to store "either a letter or a number" if you are just trying to store the value of a playing card. A playing card consists of two items: a value and...
Type: Posts; User: c99tutorial
I agree.
To the OP, you don't need to be able to store "either a letter or a number" if you are just trying to store the value of a playing card. A playing card consists of two items: a value and...
In C there is technically no difference between a letter and an integer. Consider this example:
int x = 97;
int y = 'a';
x contains the integer 97 and y contains the 'a'. But in fact the...
Probably the easiest way is to make an array of strings. If the string contains "123" then it is a number. If the string contains "a" for example, then it is a letter. This is sometimes called...
It sounds like you want `count' to be an array. For example, if the user enters 10 items, then you want an array int count[10]