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:为什么我这段代码用C++提交才可以,C就不行(错误原因说是标识符未声明)In Reply To:为什么我这段代码用C++提交才可以,C就不行(错误原因说是标识符未声明) Posted by:SummerJY at 2014-04-20 12:35:05 因为c语言只能在开头定义,c++可以随处定义,你的代码是随处定义的,所以只能用c++提交才能通过,c语言是不能通过的,如果想要c语言通过,就要把所有的定义放在开头定义,就是这样 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator