1. 取模运算时,将两个数字从double 转换为long,因为c语言中%运算只能用于整数。
分类:
其他好文 时间:
2014-12-18 13:14:04
阅读次数:
174
Exercise 3-3. Write a program that will calculate the price for a quantity entered from the keyboard, given that the unit price is $5 and there is a d...
分类:
其他好文 时间:
2014-12-17 23:53:57
阅读次数:
174
无法让我不汗颜:Exercise 3-2. Write a program that prompts the user to enter the date as three integer values for the month, the day in the month, and the yea...
分类:
其他好文 时间:
2014-12-17 20:45:27
阅读次数:
208
Exercise 3-1. Write a program that will first allow a user to choose one of two options:1. Convert a temperature from degrees Celsius to degrees Fahr....
分类:
其他好文 时间:
2014-12-17 17:44:05
阅读次数:
235
#include int main (void) { double pay = 0.0; double hours = 0.0; int dollars = 0; int cents = 0; //ger the weekly pay ...
分类:
Web程序 时间:
2014-12-17 00:06:58
阅读次数:
229
// Exercise 2.3 Calculating volume price of alternative products// The only problem here is to devise a way to determine the price// for the product ....
分类:
其他好文 时间:
2014-12-16 22:34:36
阅读次数:
263
#include int main(void){ long feet = 0L; long inches = 0L; double length = 0.0; double width = 0.0; const long inches_per_feet = 1...
分类:
其他好文 时间:
2014-12-16 13:24:55
阅读次数:
158
Exercise 2-1. Write a program that prompts the user to enter a distance in inches andthen outputs that distance in yards, feet, and inches. (For those...
分类:
其他好文 时间:
2014-12-13 21:43:26
阅读次数:
368
pom.xml 4.0.0 net.datafans exercise.dubbo 1.0.0 jar exercise.dubbo http://maven.apache.org UTF-8 3.1.1.RELEASE ...
分类:
其他好文 时间:
2014-12-10 01:45:31
阅读次数:
315
pom.xml 4.0.0 net.datafans net.datafans.exercise.rocketmq 0.0.1-SNAPSHOT com.alibaba.rocketmq rocketmq-c...
分类:
其他好文 时间:
2014-12-10 01:40:13
阅读次数:
272