C prime plus 第六版 课后编程练习 第7章

  • 7.12.1 编写一个程序读取输入,读到#字符停止,然后报告读取的空格数、换行符数和所有其他字符的数量。
  • 7.12.2.编写一个程序读取输入,读到#字符停止。程序要打印每个输入的字符以及对应的ASCII码(十进制)。一行打印8个字符。建议:使用字符计数和求模运算符(%)在每8个循环周期时打印一个换行符。
  • 7.12.3.编写一个程序,读取整数直到用户输入 0。输入结束后,程序应报告用户输入的偶数(不包括 0)个数、这些偶数的平均值、输入的奇数个数及其奇数的平均值。
  • 7.12.4 使用if else语句编写一个程序读取输入,读到#停止。用感叹号替换句号,用两个感叹号替换原来的感叹号,最后报告进行了多少次替换。
  • 7.12.5.使用switch重写练习4。
  • 7.12.6 编写程序读取输入,读到#停止,报告ei出现的次数。注意该程序要记录前一个字符和当前字符。用“Receive your eieio award”这样的输入来测试。
  • 7.12.7 编写一个程序,提示用户输入一周工作的小时数,然后打印工资总额、税金和净收入。
  • 7.12.8 修改练习7的假设a,让程序可以给出一个供选择的工资等级菜单。使用switch完成工资等级选择。
  • 7.12.9 编写一个程序,只接受正整数输入,然后显示所有小于或等于该数的素数
  • 7.12.10 1988年的美国联邦税收计划是近代最简单的税收方案。它分为4个类别,每个类别有两个等级。
  • 7.12.11 ABC 邮购杂货店出售的洋蓟售价为 2.05 美元/磅,甜菜售价为 1.15 美元/磅,胡萝卜售价为 1.09美元/磅。在添加运费之前,100美元的订单有5%的打折优惠。少于或等于5磅的订单收取6.5美元的运费和包装费,5磅~20磅的订单收取14美元的运费和包装费,超过20磅的订单在14美元的基础上每续重1磅增加0.5美元。编写一个程序,在循环中用switch语句实现用户输入不同的字母时有不同的响应,即输入a的响应是让用户输入洋蓟的磅数,b是甜菜的磅数,c是胡萝卜的磅数,q 是退出订购。程序要记录累计的重量。即,如果用户输入 4 磅的甜菜,然后输入 5磅的甜菜,程序应报告9磅的甜菜。然后,该程序要计算货物总价、折扣(如果有的话)、运费和包装费。随后,程序应显示所有的购买信息:物品售价、订购的重量(单位:磅)、订购的蔬菜费用、订单的总费用、折扣(如果有的话)、运费和包装费,以及所有的费用总额。

电子版C primer plus 第6版 中文文字版下载地址
https://blog.csdn.net/gouqi426/article/details/106412212

以下为课后练习。
使用编译器 vs 2013 。
如使用其他编译器,可将scanf_s()修改为scanf(),同时删除sizeof()。具体原因请学习scanf_s()和scanf()的区别。

7.12.1 编写一个程序读取输入,读到#字符停止,然后报告读取的空格数、换行符数和所有其他字符的数量。

// 7.12.1 字符统计.cpp : 定义控制台应用程序的入口点。
/*
可参考教材 例题7.4 一个统计单词的程序
*/#include "stdafx.h"
#define STOP '#'int _tmain()
{char c_ch;int i_spc_c = 0;        //计数器,计算空格个数int i_nline_c = 0;      //计数器,计算换行符个数int i_other = 0;       //计数器,计算其他字符个数printf("Please enter text to be analyzed(# to quit):\n");//scanf_s("%c", &c_ch,sizeof(c_ch));while ((c_ch = getchar()) != STOP){if (c_ch == '\n')i_nline_c++; elseif (c_ch == ' ')i_spc_c++;elsei_other++;}printf("The number of space is %d, the number of line break is %d, the number of other character is %d.\n", i_spc_c, i_nline_c, i_other);return 0;
}

7.12.2.编写一个程序读取输入,读到#字符停止。程序要打印每个输入的字符以及对应的ASCII码(十进制)。一行打印8个字符。建议:使用字符计数和求模运算符(%)在每8个循环周期时打印一个换行符。

// 7.12.2 字符及ASCII码打印.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"
#define STOP '#'int _tmain()
{char c_ch;int i_count = 0;printf("Please enter the text to be analyzed(# to quit):\n");while ((c_ch = getchar()) != STOP){i_count++;printf("%c %d\t", c_ch, c_ch);if (i_count % 8 == 0)printf("\n");}printf("\nDone\n");return 0;
}

7.12.3.编写一个程序,读取整数直到用户输入 0。输入结束后,程序应报告用户输入的偶数(不包括 0)个数、这些偶数的平均值、输入的奇数个数及其奇数的平均值。

// 7.12.3 数字及平均值.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"int _tmain()
{int i_num;int i_count_even = 0;  //偶数计数int i_count_odd = 0;   //奇数计数float i_total_even = 0;float i_total_odd = 0;printf("Please enter some integer to analyzed (0 to terminate):\n");while (scanf_s("%d", &i_num, sizeof(i_num))){if (i_num == 0){break;}else if (i_num % 2 == 0){ i_count_even++;i_total_even += i_num;}else{ i_count_odd++;i_total_odd += i_num;}} printf("The number of even is %d and the average is %.1f.\n", i_count_even, i_total_even / i_count_even);printf("The number of odd is %d and the average is %.1f.\n", i_count_odd, i_total_odd / i_count_odd);return 0;
}

7.12.4 使用if else语句编写一个程序读取输入,读到#停止。用感叹号替换句号,用两个感叹号替换原来的感叹号,最后报告进行了多少次替换。

// 7.12.4 符号替换.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"int _tmain()
{char c_stc;                    int i_count = 0;           printf("Please enter a sentence('#' to quit):\n");while ((c_stc = getchar()) != '#'){if (c_stc == '.'){putchar('!');i_count++;}else if (c_stc == '!'){putchar('!');   //putchar()一次只能打印一个字符,如需直接替换为!!,应使用printf().putchar('!');i_count++;}elseputchar(c_stc);}printf("\nThe program had replaced %d Punctuation.\n", i_count);return 0;
}

7.12.5.使用switch重写练习4。

// 7.12.5 符号替换switch.cpp : 定义控制台应用程序的入口点。
#include "stdafx.h"int _tmain()
{char c_stc;int i_count = 0;printf("Please enter a sentence('#' to quit):\n");while ((c_stc = getchar()) != '#'){switch (c_stc){case '.':    putchar('!');i_count++;break;case '!':    putchar('!');putchar('!');i_count++;break;default:    putchar(c_stc);break;}}printf("\nThe program had replaced %d Punctuation.\n", i_count);return 0;
}

7.12.6 编写程序读取输入,读到#停止,报告ei出现的次数。注意该程序要记录前一个字符和当前字符。用“Receive your eieio award”这样的输入来测试。

// 7.12.6 ei次数统计.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"int _tmain()
{char c_stc;char c_prev = 0;       //c_prev初始化为任何非e字符均可。int i_count= 0 ;printf("Please enter the text to be analyzed ('#'to terminate):\n");while ((c_stc = getchar()) != '#'){if (c_prev == 'e' && c_stc == 'i'){i_count++;}c_prev = c_stc;       //将c_prev更新为读取的字符后读取下一个字符。}printf("The \"ei\" appearers %d times.", i_count);return 0;
}

7.12.7 编写一个程序,提示用户输入一周工作的小时数,然后打印工资总额、税金和净收入。

做如下假设:a.基本工资 = 10.00美元/小时;
b.加班(超过40小时) = 1.5倍的时间;
c.税率: 前300美元为15%;续150美元为20%;余下的为25%
用#define定义符号常量。不用在意是否符合当前的税法。

// 7.12.7 收入.cpp : 定义控制台应用程序的入口点。
#include "stdafx.h"#define BSTIME 40
#define MTP 1.5
#define RATE1 0.15
#define RATE2 0.20
#define RATE3 0.25
#define INCOME_PER_HR 10.00
#define LINE1 300
#define LINE2 150int _tmain()
{double d_wktime = 0;double d_money_t = 0;double d_money_l = 0;double d_tax = 0;printf("Please enter how long you work perweek:\n");scanf_s("%lf", &d_wktime, sizeof(d_wktime));if (d_wktime <= BSTIME)d_money_t = d_wktime*INCOME_PER_HR;elsed_money_t = BSTIME*INCOME_PER_HR + (d_wktime - BSTIME)*MTP*INCOME_PER_HR;if (d_money_l <= LINE1)d_tax = d_money_t*RATE1;else if (d_money_t <= (LINE2 + LINE1))d_tax = LINE1*RATE1 + (d_money_t - LINE1)*RATE2;else d_tax = LINE1*RATE1 + LINE2*RATE2 + (d_money_t - LINE1 - LINE2)*RATE3;d_money_l = d_money_t - d_tax;printf("Total income \t%.2f $ \nTax \t\t%.2f $ \nNet income \t%.2f $.\n", d_money_t, d_tax, d_money_l);return 0;
}

7.12.8 修改练习7的假设a,让程序可以给出一个供选择的工资等级菜单。使用switch完成工资等级选择。

运行程序后,显示的菜单应该类似这样:


Enter the number corresponding to the desired pay rate or action:

  1. $8.75/hr 2) $9.33/hr
  2. $10.00/hr 4) $11.20/hr
  3. quit

如果选择 1~4 其中的一个数字,程序应该询问用户工作的小时数。程序要通过循环运行,除非用户输入 5。如果输入 1~5 以外的数字,程序应提醒用户输入正确的选项,然后再重复显示菜单提示用户输入。使用#define创建符号常量表示各工资等级和税率。

// 7.12.8 收入升级版.cpp : 定义控制台应用程序的入口点。
#include "stdafx.h"#define BSTIME 40
#define MTP 1.5#define RATE1 0.15
#define RATE2 0.20
#define RATE3 0.25#define LINE1 300
#define LINE2 150#define INCOME_PER_HR1 8.75
#define INCOME_PER_HR2 9.33
#define INCOME_PER_HR3 10.00
#define INCOME_PER_HR4 11.20int _tmain()
{double d_wktime = 0;double d_money_t = 0;double d_money_l = 0;double d_tax = 0;double INCOME_PER_HR = 0;int i_chs = 0;int i_count;for (i_count = 0; i_count <= 65;i_count++){putchar('*');}printf("\nEnter the number corresponding to the desired pay rate or action:\n");printf("1) $8.75/hr\t2) $9.33/hr\n");printf("3) $10.00/hr\t4) $11.20/hr\n");printf("5) quit\n");for (i_count = 0; i_count <= 65; i_count++){putchar('*');}printf("\n");while (scanf_s("%d", &i_chs, sizeof(i_chs))!=0){switch (i_chs){case 1:INCOME_PER_HR = INCOME_PER_HR1;break;case 2:INCOME_PER_HR = INCOME_PER_HR2;break;case 3:INCOME_PER_HR = INCOME_PER_HR3;break;case 4:INCOME_PER_HR = INCOME_PER_HR4;break;}if (i_chs > 0 && i_chs < 5){printf("Your desired pay rate is $ %.2f/hr.\n", INCOME_PER_HR);printf("Please enter how long you work perweek:\n");scanf_s("%lf", &d_wktime, sizeof(d_wktime));if (d_wktime <= BSTIME)d_money_t = d_wktime*INCOME_PER_HR;elsed_money_t = BSTIME*INCOME_PER_HR + (d_wktime - BSTIME)*MTP*INCOME_PER_HR;if (d_money_l <= LINE1)d_tax = d_money_t*RATE1;else if (d_money_t <= (LINE2 + LINE1))d_tax = LINE1*RATE1 + (d_money_t - LINE1)*RATE2;elsed_tax = LINE1*RATE1 + LINE2*RATE2 + (d_money_t - LINE1 - LINE2)*RATE3;d_money_l = d_money_t - d_tax;printf("Total income \t%.2f $ \nTax \t\t%.2f $ \nNet income \t%.2f $.\n", d_money_t, d_tax, d_money_l);}else if (i_chs == 5)  //输入5跳出循环 break;elseprintf("Incorrect input,please choose an option above!\n");continue;}printf("BYE.\n");return 0;
}

以下代码参考了“我再也不爱zht了” 的文章,链接如下
链接
主要通过函数方式完成选项菜单的打印,菜单可以重复出现。

// 7.12.8 收入升级版.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"#define BSTIME 40
#define MTP 1.5#define RATE1 0.15
#define RATE2 0.20
#define RATE3 0.25#define LINE1 300
#define LINE2 150#define INCOME_PER_HR1 8.75
#define INCOME_PER_HR2 9.33
#define INCOME_PER_HR3 10.00
#define INCOME_PER_HR4 11.20
#define STARS 65void star(char n, int m);
void choose(void);int _tmain()
{double d_wktime = 0;double d_money_t = 0;double d_money_l = 0;double d_tax = 0;double INCOME_PER_HR = 0;int i_chs = 0;choose();while (scanf_s("%d", &i_chs, sizeof(i_chs))!=0){switch (i_chs){case 1:INCOME_PER_HR = INCOME_PER_HR1;break;case 2:INCOME_PER_HR = INCOME_PER_HR2;break;case 3:INCOME_PER_HR = INCOME_PER_HR3;break;case 4:INCOME_PER_HR = INCOME_PER_HR4;break;}if (i_chs > 0 && i_chs < 5){printf("Your desired pay rate is $ %.2f/hr.\n", INCOME_PER_HR);printf("Please enter how long you work perweek:\n");scanf_s("%lf", &d_wktime, sizeof(d_wktime));if (d_wktime <= BSTIME)d_money_t = d_wktime*INCOME_PER_HR;elsed_money_t = BSTIME*INCOME_PER_HR + (d_wktime - BSTIME)*MTP*INCOME_PER_HR;if (d_money_l <= LINE1)d_tax = d_money_t*RATE1;else if (d_money_t <= (LINE2 + LINE1))d_tax = LINE1*RATE1 + (d_money_t - LINE1)*RATE2;elsed_tax = LINE1*RATE1 + LINE2*RATE2 + (d_money_t - LINE1 - LINE2)*RATE3;d_money_l = d_money_t - d_tax;printf("Total income \t%.2f $ \nTax \t\t%.2f $ \nNet income \t%.2f $.\n", d_money_t, d_tax, d_money_l);}else if (i_chs == 5) //输入5跳出循环 break;else{printf("Incorrect input,please choose an option above!\n");choose();}}printf("BYE.\n");return 0;
}void star(char n, int m)
{int count;for (count = 0; count < m; count++)putchar(n);printf("\n");
}
void choose(void)
{star('*', STARS);printf("Enter the number corresponding to the desired pay rate or action: \n");printf("1) $8.75/hr\t2) $9.33/hr\n3) $10.00/hr\t4) $11.20/hr\n5) quit \n");star('*', STARS);
}

7.12.9 编写一个程序,只接受正整数输入,然后显示所有小于或等于该数的素数

思路:(1)判断一个整数m是否是素数,只需把 m 被 2 ~ m-1 之间的每一个整数去除,如果都不能被整除,那么 m 就是一个素数。
(2)m 不必被 2 ~ m-1 之间的每一个整数去除,只需被 2 ~ m的二次方根之间的每一个整数去除就可以了。

// 7.12.9 正整数以下的素数.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"
#include <math.h>int IsPrime(int m);
int _tmain()
{int i_num = 0;  //输入的正整数int i_count ; //int i_index = 0; //控制换行printf("Please Enter an Positive Integer:\n");while (scanf_s("%d", &i_num, sizeof(i_num))==1 && i_num > 0){printf("The Prime(s) Less than %d is(are):\n", i_num);for (i_count = 2; i_count < i_num; i_count++){if (IsPrime(i_count) == 1){printf("%d\t", i_count);i_index++;                   //此段代码可有可无,用途主要是控制宽度,一行打印多少个字符。if (i_index % 8 == 0)printf("\n");}}printf("\nPlease Enter an Positive Integer:\n");}printf("INCORRECT.BYE!\n");return 0;
}int IsPrime(int m)  //调用此方法的数n一定大于了2。所以要输出2这个特殊的素数
{int i;if (m <= 1)return 0;for (i = 2; i <= sqrt((double) m); i++){if ( ( m % i ) == 0){return 0;}}return 1;
}

7.12.10 1988年的美国联邦税收计划是近代最简单的税收方案。它分为4个类别,每个类别有两个等级。

下面是该税收计划的摘要(美元数为应征税的收入):

// 7.12.10 税收.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#define TAXRATE1 0.15
#define TAXRATE2 0.28
#define LIMIT1 17850
#define LIMIT2 23900
#define LIMIT3 29750
#define LIMIT4 14875int _tmain()
{float f_income = 0;int i_chs = 0;int limit;float tax;printf("Enter the number corresponding to your situation(0 to quit):\n");printf("1) 单身\t\t2)户主\n3)已婚,共有\t4)已婚,离异\n");while (scanf_s("%d", &i_chs, sizeof(i_chs)) != 0){switch (i_chs){case 1:limit = LIMIT1;break;case 2:limit = LIMIT2;break;case 3:limit = LIMIT3;break;case 4:limit = LIMIT4;break;}if (i_chs > 0 && i_chs < 5){printf("Please enter your income:\n");scanf_s("%f", &f_income, sizeof(f_income));if (f_income <= limit)tax = f_income*TAXRATE1;elsetax = limit*TAXRATE1 + (f_income - limit)*TAXRATE2;printf("Your Income is %.2f.\nThe Tax You Should Pay is:%.2f.\n", f_income, tax);}else if (i_chs >= 5) //跳出循环 {printf("Incorrect input,please choose an option above!\n");continue;}elsebreak;}printf("BYE.\n");return 0;
}

7.12.11 ABC 邮购杂货店出售的洋蓟售价为 2.05 美元/磅,甜菜售价为 1.15 美元/磅,胡萝卜售价为 1.09美元/磅。在添加运费之前,100美元的订单有5%的打折优惠。少于或等于5磅的订单收取6.5美元的运费和包装费,5磅~20磅的订单收取14美元的运费和包装费,超过20磅的订单在14美元的基础上每续重1磅增加0.5美元。编写一个程序,在循环中用switch语句实现用户输入不同的字母时有不同的响应,即输入a的响应是让用户输入洋蓟的磅数,b是甜菜的磅数,c是胡萝卜的磅数,q 是退出订购。程序要记录累计的重量。即,如果用户输入 4 磅的甜菜,然后输入 5磅的甜菜,程序应报告9磅的甜菜。然后,该程序要计算货物总价、折扣(如果有的话)、运费和包装费。随后,程序应显示所有的购买信息:物品售价、订购的重量(单位:磅)、订购的蔬菜费用、订单的总费用、折扣(如果有的话)、运费和包装费,以及所有的费用总额。

以下代码借鉴了 我再也不爱zht了 博文链接的思路。

// 7.12.11 杂货店.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"
#include <ctype.h>#define ARTICHOKE 2.05          //洋蓟价格
#define SUGARBEET 1.15          //甜菜价格
#define CARROT 1.09             //胡萝卜价格#define PAKAGE1 6.5              //5磅运费和包装费
#define PAKAGE2 14              //5-20磅运费和包装费
#define PAKAGE3 0.5             //20磅以上运费和包装费单价#define DISCOUNT 0.05            //折扣#define mLIMIT 100              //打折价钱
#define wLIMIT1 5               //运费重量线
#define wLIMIT2 20              //运费重量线#define STARS 40void star(char n, int m);        //直接使用7.12.8中设计的函数。
void choose(void);int _tmain()
{float f_wArtichoke = 0;       //洋蓟的重量float f_wSugarbeet = 0;     //甜菜的重量float f_wCarrot = 0;        //胡萝卜的重量float f_wTotal = 0;            //总重量float f_temp = 0;         //重量输入float f_cArtichoke = 0;      //洋蓟的费用float f_cSugarbeet = 0;     //甜菜的费用float f_cCarrot = 0;        //胡萝卜的费用float f_cTotal = 0;            //货品总费用float f_cTras = 0;          //运费和包装费float f_cDiscount = 0;     //折扣float f_Total = 0;         //总费用int i_chs;                 //选项choose();while ((i_chs = getchar()) != 'q'&& i_chs != 'Q'){if (i_chs == '\n')continue;while (getchar() != '\n')continue;i_chs = tolower(i_chs);          //调用大写字母转换小写字母函数,兼容大小写,增加容错率。switch (i_chs){case 'a':                  printf("Please enter the weight of Artichoke:\n");scanf_s("%f\n", &f_temp, sizeof(f_temp));f_wArtichoke += f_temp;break;case 'b':printf("Please enter the weight of Sugarbeet:\n");scanf_s("%f\n", &f_temp, sizeof(f_temp));f_wSugarbeet += f_temp;break;case 'c':printf("Please enter the weight of Carrot:\n");scanf_s("%f\n", &f_temp, sizeof(f_temp));f_wCarrot += f_temp;break;default:  printf("%c is not a valid choice.\n", i_chs);}}f_wTotal = f_wArtichoke + f_wSugarbeet + f_wCarrot;f_cArtichoke = f_wArtichoke*ARTICHOKE;f_cSugarbeet = f_wSugarbeet*SUGARBEET;f_cCarrot = f_wCarrot*CARROT;f_cTotal = f_cArtichoke + f_cSugarbeet + f_cCarrot;if (f_cTotal > mLIMIT)                      //大于100美元时f_cDiscount = f_cTotal*DISCOUNT;     //折扣额elsef_cDiscount = f_cTotal*0;f_cTotal = f_cTotal - f_cDiscount;          //实付额if (f_wTotal > 0 && f_wTotal <= wLIMIT1)      //总重为0到5磅时的运费f_cTras = PAKAGE1;else if (f_wTotal <= wLIMIT2)             //总重为5到20磅时的运费     f_cTras = PAKAGE2;else f_cTras = PAKAGE2 + (f_wTotal - wLIMIT2)*PAKAGE3;  //总重超过20磅时的运费f_Total = f_cTras + f_cTotal;star('*', STARS);                                     //打印星号横线printf("You ordered:\n");printf("GOODS\t\tPRICE\tWEIGHT\tCOST\n");printf("Artichoke\t%.2f\t%.2f\t%.2f\n", ARTICHOKE, f_wArtichoke,f_cArtichoke);printf("Sugarbeet\t%.2f\t%.2f\t%.2f\n", SUGARBEET, f_wSugarbeet,f_cSugarbeet);printf("Carrot\t\t%.2f\t%.2f\t%.2f\n", CARROT, f_wCarrot,f_cCarrot);printf("The Total Cost:\t\t\t%.2f\n", f_cTotal);printf("The Discount:\t\t\t%.2f\n", f_cDiscount);printf("The Trans&pack Cost:\t\t%.2f\n", f_cTras);printf("The Cost Infact:\t\t%.2f\n", f_Total);printf("BYE.\n");star('*', STARS);                                     //打印星号横线return 0;
}void star(char n, int m)
{int count;for (count = 0; count < m; count++)putchar(n);printf("\n");
}
void choose(void)
{star('*', STARS);printf("Please choose the goods you buy:\n");printf("a.Artichoke\tb.Sugarbeet\nc.Carrot\tq.quit\n");star('*', STARS);
}

C prime plus 第六版 课后编程练习 第7章相关推荐

  1. C prime plus 第六版 课后编程练习 第4章

    本人编程小白,正在奋力自学C语言.内容如有错误,欢迎交流. 电子版C primer plus 第6版 中文文字版下载地址 下载地址 以下为课后练习. 使用编译器 vs 2013 . 如使用其他编译器, ...

  2. C++primer plus第六版课后编程题答案8.3(正解)

    在百度知道里面得到了正确的答案 http://zhidao.baidu.com/question/198940026560129285.html?quesup2&oldq=1 #include ...

  3. C++primer plus第六版课后编程题答案8.6

    8.6 #include <iostream> #include <string> using namespace std;template <typename AnyT ...

  4. C++PRIMER PLUS第六版课后编程答案 4.6-4.10

    4.6 #include <iostream> #include <string> using namespace std; struct CandyBar {string n ...

  5. 微型计算机原理与接口技术(周荷琴 冯焕清)第六版 课后习题答案 第三章(部分答案)

    第三章 1.分别说明下列指令的源操作数和目的操作数各采用什么寻址方式. 源操作数  目的操作数            源操作数                    目的操作数 (1)MOV AX, ...

  6. 微型计算机原理与接口技术 (周荷琴 冯焕清)第六版 课后习题答案 第五章(部分答案)

    第五章 3. 试从功耗.容量.价格优势.使用是否方便等几个方面,比较静态 RAM 和 动态 RAM 的优缺点,并说明这两类存储器芯片的典型应用 SRAM.DRAM 均为易失性存储器. 优点:SRAM  ...

  7. 计算机网络自顶向下方法(第六版) 课后题答案 | 第三章

    复习题 R1. a. 将此协议称为简单传输协议(STP).在发送方端,STP 从发送过程中接收不超过 1196 字节的数据块.目标主机地址和目标端口号.STP 向每个块添加一个 4 字节的报头,并将目 ...

  8. 计算机网络自顶向下方法(第六版) 课后题答案 | 第五章

    复习题 R1. 公共汽车.火车.汽车 R2. 虽然每个链路都保证通过链路发送的IP数据报将在链路的另一端接收到,没有错误,但不能保证IP数据报将以正确的顺序到达最终目的地.有了IP,同一TCP连接中的 ...

  9. 计算机网络自顶向下方法(第六版) 课后题答案 | 第四章

    复习题 R1. 网络层的分组名称是数据报.路由器是根据包的 IP 地址转发包;而链路层是根据包的 MAC 地址来转发包. R2. 数据报网络中网络层两个最重要的功能是:转发,路由选择. 虚电路网络层最 ...

最新文章

  1. php 修改数据库表的字段的值
  2. 服务器cpu天梯图_九月手机处理器排名 2020年9月最新版手机CPU天梯图
  3. (chap8 确认访问用户身份的认证) BASIC认证(基本认证)
  4. react-router中的exact和strict
  5. oracle激活锁定用户,oracle 锁用户,oracle解除用户锁定
  6. C++实现N选R的实现算法(附完整源码)
  7. [POJ 1742] Coins 【DP】
  8. 可恶,谁占用了我的80端口?
  9. qsort 三级排序
  10. 字符串:你看的懂的KMP算法(带验证)
  11. 脱单盲盒|交友盲盒系统
  12. 【python】 合并列表的方法
  13. elasticsearch5.0.0中索引和文档接口的变化
  14. openStack Packages yum upgrade
  15. 1.4 多项式拟合实例
  16. IPCamera可以通过BackChannel进行对讲?
  17. 英雄联盟商城登录界面
  18. 唱吧录制的歌曲转换成mp3_录制开放文化歌曲
  19. 《新白娘子传奇》隐藏惊天秘密-白素贞的身世之谜
  20. bzoj 4199: [Noi2015]品酒大会 (后缀自动机+DP)

热门文章

  1. 测试深度学习环境(GPU是否可调用)
  2. Java 文本检索神器 “正则表达式”
  3. show sga解析
  4. php编写冒泡排序算法_PHP排序算法之冒泡排序(Bubble Sort)实现方法详解
  5. linux 命名管道通信速度,《Linux 进程间通信》命名管道:FIFO
  6. 【Java web】请求转发响应重定向
  7. 卡苹果6plus在线_答题攻略、复活卡、电脑助手,你想知道的都在这里了!
  8. Python竟然能监控抖音?这也太刺激了!
  9. 魅族手机使用鸿蒙系统,魅族宣布接入鸿蒙是怎么回事
  10. idea安装lombok - 雨中散步撒哈拉