realizing number ...how?? [closed]
- by gcc
i hold input like that A is char pointer
A[0]=n
A[1]=j
A[2]=n
A[3]=d
. there is one number in A[]
and every A[i] is important for me because what will i do in next step
is determined by input in A[i] or A[n]
A[j]=$
.
A[i]=14(any number)
.
.
int func(int temp)
{
if(temp=='n')
..do something then return 10;
if(temp=='j')
.. return 11;
if(temp=='d')
.. return 12;
if(........)
when temp find/realize number ,i wanna return 13;
in if statement, what code should i write
}
how i can do
}