欢迎来到牛牛题库网
牛牛题库官网
登录
注册
首页
搜题找答案
单项选择题
Dreamweaver既可以关联浏览器预览网页,也可以通过设计视图预览问页。
A、正确
B、错误
点击查看答案
相关考题
未知题型
已知在文件IN5.DAT中存有100个产品销售记录,每个产品销售记录由产品代码dm(字符型4位)、产品名称mc(字符型10位)、单价dj(整型)、数量s1(整型)、金额je(长整型)五部分组成。其中:金额=单价×数量。函数ReadDat()的功能是读取这100个销售记录并存入结构数组sell中。请编制函数SortDat(),其功能要求:按金额从大到小进行排列,若金额相等,则按产品代码从小到大进行排列,最终排列结果仍存入结构数组sell中,最后调用函数WriteDat()把结果输出到文件OUT5.DAT中。
注意:部分源程序已给出。请勿改动主函数main()、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
[试题程序]
include
include
include
include
include
define MAX 100
typedef struct
{ chardm[5]; /*产品代码*/
charmc[11]; /*产品名称*/
int dj; /*单价*/
int s1; /*数量*/
long je; /*金额*/
}PRO;
PRO sell[MAX];
void ReadDat();
void WriteDat();
void SortDat()
{
}
void main()
{
memset(sell,0,sizeof(sell));
ReadDat();
SortDat();
WriteDat();
}
void ReadDat()
{
FILE *fp;
char str[80],ch[11];
int i;
fp=fopen('IN5.DAT','r');
for(i=0;i<100;i++)
{
fgets(str,80,fp);
memcpy(sell[i].dm,str,4);
memcpy(sell[i].mc,str+4,10);
memcpy(ch,str+14,4);ch[4]=0;
sell[i].dj=atoi(ch);
memcpy(ch,str+18,5);ch[5]=0;
sell[i].s1=atoi(ch);
sell[i].je=(long)sell[i].dj*sell[i].s1;
}
fclose(fp);
}
void WriteDat(void)
{
FILE *fp;
int i;
fp=fopen('OUT5.DAT','w');
for(i=0;i<100;i++)
fprintf(fp,'%s%s%4d%5d%101d/n',sell[i].dm,sell[i].mc,sell[i].dj,sell[i].s1,sell[i].je);
fclose(fp);
}
多项选择题
下面关于长短期记忆神经网络LSTM的描述中,正确的说法是哪些?
A、LSTM中通过引入输入门、遗忘门、输出门解决了RNN中存在的梯度消失和梯度爆炸
B、LSTM中门的开关程度是由信息的权重决定的,即训练过程中记住重要信息
C、与RNN相比,LSTM中引入更多参数,所以其训练周期更久
D、
LSTM中使用Sigmoid实现门限控制,而用TanH实现数据处理
未知题型
To tackle the problem o" graduation gap, the University of Wisconsin-Madison helps minority students get over the stereotype that______.
关注
顶部
微信扫一扫,加关注免费搜题