摘要: 砝码称重问题:设有1g、2g、3g、5g、10g、20g的砝码各若干枚(其质量#includeint sum; ///表示输入的砝码的总质量int ma[6]; ///六种砝码的个数int weight[6]={1,2,3,5,10,20}; ///六种砝码的重量char dp[1001]... 阅读全文
posted @ 2015-06-19 17:17 落影无痕 阅读(2127) 评论(0) 推荐(0) 编辑
摘要: C++常用库函数 1、常用数学函数 头文件 #include 或者 #include 函数原型功能返回值int abs(int x)求整数x的绝对值绝对值double acos(double x)计算arcos(x)的值计算结果double asin(dou... 阅读全文
posted @ 2015-06-19 10:38 落影无痕 阅读(682) 评论(0) 推荐(0) 编辑