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 in the input e.g
First terms= 3,6,K,7,A
Second terms= H,S,H,D,C
Also is there a way to give the letters numerical values within the source code such as
J=11
Q=12
K=13
Any help would be appreciate my knowledge of C is very basic
Thanks
Murock



1Likes
LinkBack URL
About LinkBacks




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 so that 3 is a stand alone variable from H and K is stand alone from S. I'm not sure if this makes sense. So my stdin is in the form "ab cd" and a=3, b=15, c=13 d=16.