随笔分类 -  C

摘要: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... 阅读全文
posted @ 2014-12-17 16:21 稳稳稳稳稳稳 阅读(331) 评论(0) 推荐(0)
摘要:#include int main (void) { double pay = 0.0; double hours = 0.0; int dollars = 0; int cents = 0; //ger the weekly pay ... 阅读全文
posted @ 2014-12-16 22:24 稳稳稳稳稳稳 阅读(352) 评论(0) 推荐(0)
摘要:// 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 ... 阅读全文
posted @ 2014-12-16 21:50 稳稳稳稳稳稳 阅读(224) 评论(0) 推荐(0)
摘要:#include int main(void){ long feet = 0L; long inches = 0L; double length = 0.0; double width = 0.0; const long inches_per_feet = 1... 阅读全文
posted @ 2014-12-16 12:52 稳稳稳稳稳稳 阅读(159) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-12-13 21:17 稳稳稳稳稳稳 阅读(739) 评论(0) 推荐(0)
摘要:// Exercise 1.3 Output a name and address#include int main(void){ printf("/"It's freezing in here,\" he said coldly.\n"); return 0;} // The double... 阅读全文
posted @ 2014-12-13 19:18 稳稳稳稳稳稳 阅读(153) 评论(0) 推荐(0)
摘要:#includeint main(void){ printf("My name is xiaomi5320\n\tMy address is www.cnblogs.com/xiaomi5320\n"); return 0;}将1.1 换成一行输出。 Question: // The c... 阅读全文
posted @ 2014-12-13 18:26 稳稳稳稳稳稳 阅读(156) 评论(0) 推荐(0)
摘要:#includeint main(void){ printf("My name is xiaomi5320\n\t"); printf("My address is www.cnblogs.com/xiaomi5320\n"); return 0;} 阅读全文
posted @ 2014-12-13 18:11 稳稳稳稳稳稳 阅读(142) 评论(0) 推荐(0)