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 |
Re:用scanf输入时,以空行结束输入怎么写啊!题目建议用这个输入,可是怎么写?In Reply To:用scanf输入时,以空行结束输入怎么写啊!题目建议用这个输入,可是怎么写? Posted by:yjc at 2005-09-09 18:26:45 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