asrock
Junior Member level 3
- Joined
- Sep 10, 2010
- Messages
- 26
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,538
hello every one
i would ask you in issue i faced it when i make a simple prog....
if i have a string series such as
char st[10]="683664791"
here i want to get every character and convert it to integer to make on it some math operations...
the problem is : how i can get ceratin character in (st) !
here's my try:
char st[10]="683664791"
int num;
num=atoi(st[0]) // for example i want to get "6" and convert to int number
---------------
but its not working
help me plz
i would ask you in issue i faced it when i make a simple prog....
if i have a string series such as
char st[10]="683664791"
here i want to get every character and convert it to integer to make on it some math operations...
the problem is : how i can get ceratin character in (st) !
here's my try:
char st[10]="683664791"
int num;
num=atoi(st[0]) // for example i want to get "6" and convert to int number
---------------
but its not working
help me plz