Hey guys I'm pretty new to C, just looking to see how to display a image and some text to go along with it so far I can display in the image but cannot display the text at the same time.
Any ideas?...
Type: Posts; User: murock
Hey guys I'm pretty new to C, just looking to see how to display a image and some text to go along with it so far I can display in the image but cannot display the text at the same time.
Any ideas?...
Right well I know how a linear search works now :) But I'm still lost on how to do this could you guys show me an example lets be simply say my stdin is "3H KS" and I want to split the variables up...
Anyone know a good place for tutorial videos or just plain tutorials not sure how to do a string search
so isn't char suit [3] ok since its makes (0,1,2,3) giving 4?
My ten card has to be represented in the input as the number "0" which i am finding difficult to change its value to 10 for obvious...
Also found this
if (('2' <= CARD) && (CARD <= '9')) VALUE = CARD - '2';
else if ('J' == CARD) VALUE = 11;
else if ('Q' == CARD) VALUE = 12;
else if ('K' == CARD) VALUE = 13;
else if ('A' ==...
There are always 5 its for 5 cards so like A=Ace H=Hearts 2=2 etc so they are always in this format
So for the arrays would I do something like
char suit[3];
char value[12];
Hey All
I've just started learning the C programming language at uni and am in need of some help.
If I have a input such as "3H 6S KH 7D AC"
Is there a way to group the second and first terms...