| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
好写法 喜欢In Reply To:Re:用scanf输入时,以空行结束输入怎么写啊!题目建议用这个输入,可是怎么写? Posted by:ss08zhangchi at 2010-01-19 01:13:50 > char buff[50] ;
> Word dict[100] ;
> int i = 0 ;
>
> while (gets (buff) && strcmp (buff, "") != 0)
> {
> sscanf (buff, "%s%s", dict[i].english, dict[i].foreign) ;
> i++ ;
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator