摘要: 准备写一个简单的web投票系统用的柱图,其中用到计算百分比的问题,刚开始理所当然的认为这样写 intitemCount = 23 ; int totalCount =230 ; int maxWidth =230 ; int result = Convert.ToInt32(itemCount/totalCount * maxWidth) ;//期望获得一个实际的表格宽度 但无论如何... 阅读全文
posted @ 2004-08-27 03:25 kwklover 阅读(3279) 评论(14) 推荐(0) 编辑