> > #include <stdio.h>
> > int main(void)
> > {
> > char * p = "13->53";
> > int f, t;
> > if(sscanf(p, "%d->%d", &f, &t) != 2)
> > printf("Syntax error\n");
> > else
> > printf("From:%d To:%d\n", f, t);
> > return 0;
> > }
> > こんなもんで動くが。Cだけど。
> ありがとう あなたは神だ
> 今までsscanf(ss,"%s->%s",str1,str2)で取り込んでたのが間違いだったのだな
間違いだったのだな等といわれてもssとstr1とstr2が何なのかわからない
ので何の事か分からないのでssとstr1とstr2が何なのか教えてくれ。気になるじゃないか。
参考:2000/10/04(水)07時50分44秒