| ||||||||||
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 |
有空再给你加个 -pedantic-errors 选项In Reply To:c++0x的auto真爽~~~贴代码 Posted by:yzhw9981 at 2009-05-11 20:02:38 > # 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator