- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
特殊类 - 副本(Special class - copy)
特殊类 - 副本(Special class - copy)
Topic 19: write a function findstr () that counts the number of substrings of a length 2 in another string. For example, suppose the string entered is ASD asasdfg ASD as ASD mklo, the substring is as, and the function return value is 6 zx67. Function readwriteDat () function is to read from the file in.dat read two characters, wear 4, and call the function findstr (), and finally output the results to the file out.dat. The standard answer / * * /
Int findStr (char, *str, char, *substr)
{int n;
Char, *p, *r;
N=0;
While (*str)
{p=str; r=substr;
While (*r)
If (*r==*p)
{r++; p++;}
Else break;
If (*r==\0)
N++; str++;}
Return n;}
Topic 20: write function jsvalue, its function is: find Fibonacci Series in greater than t of the smallest a number, the result is returned by function. Among them, the Fibonacci sequence F (n) is defined as: F (0) =0, F (1), =1F (n), =F (n-1), +F (n-2), and finally call the function writeDat () to read 10 data t, respectively, the results are obtained, and the results are exported to the file out.dat.
Int jsValue (int t) / * * / standard answer
{int, f1=0, f2=1, fn;
Fn=f1+f2;
While (fn=t)
{f1=f2; f2=fn; fn=f1+f2;}
Return FN;}
Topic 21: the function of the program is: using a simple iterative method under the equation shown: cos (x) a real root -x=0. Xn+1=cos (xn)
Float (countValue) / * * / standard answer
{float, x0, x1=0.0;
While (1)
{x0=x1; x1=cos (x0);
If (Fabs (x0-x1) 1e-6)
Break;}
Return X1;}
Topic 24: find the qualified integers in three bit integers (100 to 999), and store them from small to large. They are both complete square numbers and two digit numbers, such as 144, 676 and so on. Please compile functions to implement this function, and the number of integers that satisfy the condition is returned by the function that is compiled. Finally, call the function writeDat () to export the result to the file out.dat.
JsValue (int a[10][9]) / * * / standard answer
{int, I, J, k=0;
Int, Hun, ten, data;
For (I=10
您可能关注的文档
- 彭哥列兔子的108种烹调煮食方法(The 108 methods of cooking and cooking for the rabbit).doc
- 律师助理的工作内容(The work of a paralegal).doc
- 思修(Repair).doc
- 思修考试题(Thoughts and exams).doc
- 弱势品牌企业如何获得业绩持续增长(How weak brand enterprises to achieve sustained growth in performance).doc
- 思想差距(Ideological gap).doc
- 弱电相关知识点(Weak current knowledge).doc
- 思政(Ideological and Political Education).doc
- 思科e1配置白皮书(CISCO E1 configuration white paper).doc
- 思维观念决定运作模式(The idea of thinking determines the mode of operation).doc
- 特色产业成就梅州绿色崛起(Characteristic industry achievements green rising in Meizhou).doc
- 犬儒学派(Cynic).doc
- 狮子林导游词(Lion Forest guide word).doc
- 猎取稀缺人才的成功之道(The path to success in hunting scarce talent).doc
- 猛洞河漂流历险(张家界游记)(Adventures of fierce cave rafting (Zhangjiajie blogs)).doc
- 猫眼石传说(Opal legend).doc
- 王效金的营销观(Wang Xiaojin's marketing view).doc
- 王道成企业家文化的9个负值(Wang Daocheng 9 negative values of entrepreneur culture).doc
- 特种印刷技术在包装加工中的应用(Application of special printing technology in packaging processing).doc
- 球王攻略(Diego.).doc
最近下载
- (2024秋新版)人教PEP版三年级英语上册全册教案.doc
- ISO15189质量手册--输血科通用模版(文档-100页).docx VIP
- RBA6.0版标准资料学习课件.ppt VIP
- 2025年北森领导力测试题及答案.doc VIP
- AI政务大厅业务平台架构方案.pptx VIP
- 医疗器械临床应用管理办法.pptx VIP
- 征信简版电子版PDF个人信用报告最新版2024年可编辑带水印模板.pdf VIP
- 人工智能对人类发展利大于弊VS弊大于利辩论赛正方辩词一辩、二辩、三辩、四辩发言稿.pptx VIP
- 人工智能对人类发展利大于弊VS弊大于利辩论赛 反方辩词一辩、二辩、三辩、四辩发言稿.docx VIP
- 北森在线测评题库及答案.doc VIP
文档评论(0)