I cant do change string to int.
- From: "emre esirik(hacettepe computer science and engineering)" <emreesirik@xxxxxxxxx>
- Date: Sun, 11 Nov 2007 07:46:50 -0800
char poli[50];
int p;
scanf("%s", poli);
if(poli[i]=='X' && poli[i+1]=='^')
{
toplam=i+3;
p=poli[i+2];
p is a ASCII code of integer but I need integer
for example if poli[i+2]='2' it puts p 50 (ascii code of '2')
but I need p=2 integer form, how can I do, please help
.
- Follow-Ups:
- Re: I cant do change string to int.
- From: Chris Dollin
- Re: I cant do change string to int.
- From: santosh
- Re: I cant do change string to int.
- Prev by Date: Re: simplebinary tree
- Next by Date: Re: I cant do change string to int.
- Previous by thread: Good ebook site [For Me]. 6000+ ebook index
- Next by thread: Re: I cant do change string to int.
- Index(es):
Relevant Pages
|