Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

关于gets()的问题

Posted by killer8888 at 2009-05-16 13:47:20 on Problem 2579
这是我程序的输入:
scanf("%d%d",&n,&m);
gets(order);    //第一个order数组,用来吃掉回车
for(i=0;i<n;i++)
    scanf("%s",sou[i]);
gets(order);         //这个是什么作用? 回车符不是已经被上面的命令吃掉了?
gets(order);    //用来存“END”

第二个gets(order)是什么作用?


Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator