2026信息素养初赛-数字守艺人-初中组C++(选择3)_第1页
2026信息素养初赛-数字守艺人-初中组C++(选择3)_第2页
2026信息素养初赛-数字守艺人-初中组C++(选择3)_第3页
2026信息素养初赛-数字守艺人-初中组C++(选择3)_第4页
2026信息素养初赛-数字守艺人-初中组C++(选择3)_第5页
已阅读5页,还剩14页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

础图案模块组成,每个模块的绘制需要调用3次自定义函数drawModule(),同时为了保证纹样对称,答案:Bstd::vector<Frame>newFrames;newFrames.push_back(frames[i]);}}std::vector<Frame>newFrames;newFrames.reserve(50);newFrames.push_back(frames[i]);}std::vector<Frame>newFrames;if(std::distance(frames.begin(),it)%2==1){newFrames.push_back(*it);}}std::vector<Frame>newFrames(50);}}答案:BboolisLeapYear(intyear){}boolisLeapYear(intyear){}boolisLeapYear(intyear){}boolisLeapYear(intyear){}答案:B选项A的逻辑错误,会将能被100整除但不能被400整除的年值,键为阶段名称(std::string值为温度范围std::pair<int,std::map<std::string,std::pair<int,int>>tempMap;//假设已初始化mapstd::map<std::string,std::pair<int,int>>tempMap;//假设已初始化mapintlower=tempMap.find("釉烧")->first;std::map<std::string,std::pair<int,int>>tempMap;//假设已初始化mapautoit=tempMap.find("釉烧");std::map<std::string,std::pair<int,int>>tempMap;//假设已初始化mapintlower=tempMap.at("釉烧").second;答案:CinttotalDistance=0;}inttotalDistance=0;}inttotalDistance=0;totalDistance+=abs(p.first)+abs(p.second);}inttotalDistance=0;autoit=path.begin();totalDistance+=abs(it->first-next->first)+abs(it->second-next->second);}解析:选项A遍历路径中的连续点对,依次计算每两个相邻点的曼哈顿classShadowPuppet{private:public:ShadowPuppet(std::stringn,intf):name(n),frameCount(f){}friendvoidprintPuppetInfo(ShadowPuppetp);};voidprintPuppetInfo(ShadowPuppetp){std::cout<<"Name:"<<<<",Frames:"<<p.frameCount<<s}classShadowPuppet{private:public:ShadowPuppet(std::stringn,intf):name(n),frameCount(f){}voidprintPuppetInfo();};friendvoidShadowPuppet::printPuppetInfo(){std::cout<<"Name:"<<name<<",F}classShadowPuppet{private:public:ShadowPuppet(std::stringn,intf):name(n),frameCount(f){}friendvoidprintPuppetInfo();};voidprintPuppetInfo(){std::cout<<"Name:"<<name<<",F}classShadowPuppet{private:public:ShadowPuppet(std::stringn,intf):name(n),frameCount(f){}friendvoidprintPuppetInfo(ShadowPuppet*p);};voidprintPuppetInfo(ShadowPuppet*p){std::cout<<"Name:"<<p->name<<",Frames:"<<p->frameCount<<std::e}std::vector<std::string>solarTerms={/*初始化数据*/};std::vector<std::string>marchTerms;marchTerms.push_back(solarTerms[i]);}std::vector<std::string>solarTerms={/*初始化数据*/};std::vector<std::string>marchTerms;marchTerms.push_back(term);}}std::vector<std::string>solarTerms={/*初始化数据*/};std::vector<std::string>marchTerms;std::copy(solarTerms.begin()+4,solarTerms.begin()+6,back_inserter(marchTerms));答案:D}}}}std::vector<std::vector<int>>texture(10,std::vector<int>(10));}}std::vector<std::vector<int>>texture(10,std::vector<int>(10));}}答案:D解析:选项A错误,C++17及以上的std::doubletotal=perPattern*100;printf("%.1f\n",total);

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论