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

c++0x的auto真爽~~~贴代码

Posted by yzhw9981 at 2009-05-11 20:02:38 on Problem 1000
# include <stdio.h>
int main()
{
  auto data[3];
  scanf("%d %d",data+1,data+2);
  auto total=0;
  for(auto i=1;i<=2;i++) total+=data[i];
  printf("%d\n",total);

}


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