随笔分类 -  C/C++

这是我分享自己学习C/C++经验的平台,希望能给大家带来有用的东西。
摘要:简单的字符串处理问题。 阅读全文
posted @ 2017-03-13 21:58 Lueagle 阅读(183) 评论(0) 推荐(0)
摘要:Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit the 阅读全文
posted @ 2017-02-18 16:17 Lueagle 阅读(170) 评论(0) 推荐(0)
摘要:Problem Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are 阅读全文
posted @ 2017-02-01 18:33 Lueagle 阅读(189) 评论(0) 推荐(0)
摘要:Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is gues 阅读全文
posted @ 2017-02-01 12:13 Lueagle 阅读(177) 评论(0) 推荐(0)
摘要:昨天是个值得纪念的日子,我数学建模拿了推荐国家一等奖的名额,希望最后能顺利拿到国一吧。现在大三已经开学一个月了。这一个月因为社会实践评优的事情真的很忙,还好最后拿到了可能拿到的所有的奖项。结果自己把科研助手这件事给耽误了,今天去找马老师,结果马老师的实验室人已经满了。所以没办法,我可能又要去找其他老 阅读全文
posted @ 2016-10-01 15:42 Lueagle 阅读(720) 评论(0) 推荐(0)
摘要:c风格字符串的函数主要位于头文件<string.h>中,现介绍几个常用的有关c风格字符串的处理函数 1.sprintf(字符串名,mode,相关数值,...) 该函数与printf的用法相似,不过其是向字符串中写入数据。 另外要注意,字符串要足够大。 2strcpy(a,b) 将b复制给a 3.st 阅读全文
posted @ 2016-04-24 01:00 Lueagle 阅读(199) 评论(0) 推荐(0)