2015年11月30日

JiuDuOj——1049

摘要: 水题,但是胡思乱想了40分钟,又想用字符指针又是这又是那。其实还是按照最原始的思想最简单,字符指针和字符串类还是不算熟悉,需要进一步巩固复习。 #include #include using namespace std;int main(int argc, const char * argv[... 阅读全文

posted @ 2015-11-30 15:25 MMac 阅读(188) 评论(0) 推荐(0)

JiuDuOj——1020

摘要: 墨迹了老半天,这道简单排序才搞出来。水得没看相....路漫漫其修远,相信天道酬勤啊!!!搞起!#include #include #include int x[500],y[500];using namespace std;bool mySort(int a,int b){ return a ... 阅读全文

posted @ 2015-11-30 14:54 MMac 阅读(202) 评论(0) 推荐(0)

JiuDuOj——1051

摘要: #include #include #include #include using namespace std; int main(){ int a,n,tmp,k,ans[101]; while (cin>>a>>n) { if (a == 0) {... 阅读全文

posted @ 2015-11-30 13:57 MMac 阅读(341) 评论(0) 推荐(0)

2015.11.26——Accelerated C++

摘要: 开始看这本经典作品...Lua确实理解不到位,还是要在实战中理解比较透彻。 阅读全文

posted @ 2015-11-30 09:15 MMac 阅读(121) 评论(0) 推荐(0)

POJ2681——求字符串长度

摘要: 这题看上去很简单啊,做了很久...太水了有点,主要是输入流不太熟悉而且对字符指针有点迷茫似懂非懂的样子。不过好歹还是做出来了,要进行进一步的总结才行。 先贴AC代码。#include#includeusing namespace std;char inp[100];int main(){ ... 阅读全文

posted @ 2015-11-30 09:05 MMac 阅读(197) 评论(0) 推荐(0)

导航