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++中的int和long是一样的,都是32位的

Posted by hawk at 2005-03-01 09:06:04 on Problem 2000
In Reply To:Re:求助~~~~~~为什么运行结果为-171798692???郁闷~ Posted by:2003011475 at 2005-02-28 23:15:38
> 当天数超过一定数值时,金币数会超出int类型的表示范围(-32768~32767)。应该改用表示范围更大的数据类型如long类型。

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