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++交定义float可以直接赋值,用gcc却不可以

Posted by yuanyirui at 2007-11-01 09:09:00 on Problem 2815
例如:
float vm=0.1,vh=0.0083333333;//=vm/12.0 每一秒分针走的角度,时针走的角度 
在gcc中只能在main外
在c++中却可以在main里面
这是为什么呢?

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