且未

博客园 首页 新随笔 联系 订阅 管理

04 2019 档案

摘要:在引入别人的一个项目之后乱码原因:java source file 编译格式不一致 解决方法:Window-->preference---->general----->content type----------... 阅读全文
posted @ 2019-04-29 15:45 阿聊 阅读(1145) 评论(0) 推荐(0)

摘要:pair使用.first,.second map使用->first,->second; map初始化数据可以用mp[a]=b,or mp.insert(make_pair(a,b)); 阅读全文
posted @ 2019-04-11 17:08 阿聊 阅读(655) 评论(0) 推荐(0)

摘要:#include #include #include using namespace std;map > mp;int main(){ mp[0][0]=1; mp[0][1]=2; mp[1][0]... 阅读全文
posted @ 2019-04-10 22:33 阿聊 阅读(512) 评论(0) 推荐(0)

摘要:#include #include using namespace std;int main(){ int n,m;cin>>n>>m; int a[30]; memset(a,0,sizeof(... 阅读全文
posted @ 2019-04-04 13:10 阿聊 阅读(234) 评论(0) 推荐(0)

摘要:#include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <set> using namespace std; int main() { int ans = 0; for (int i 阅读全文
posted @ 2019-04-04 11:17 阿聊 阅读(170) 评论(0) 推荐(0)

摘要:蒜头君有一块数码管显示屏,只能显示数字。每个数字的显示如下。每 给这道题跪了,注意数据的存储,和访问。具体解释 看代码注释#include #include #include #include #include ... 阅读全文
posted @ 2019-04-04 10:01 阿聊 阅读(168) 评论(0) 推荐(0)

摘要:这道题,想了一早上。只可意会不可言传。需要注意的点:1.输入的时候ch==10为回车。while(scanf("%c",&ch)&&ch!=10){}2. #include #include using n... 阅读全文
posted @ 2019-04-03 13:50 阿聊 阅读(150) 评论(0) 推荐(0)

摘要:vector本来就是可以用来代替一维数组的,vector提供了operator[]函数,可以像数组一样的操作,而且还有边界检查,动态改变大小。 这里只介绍用它来代替二维的数组,二维以上的可以依此类推。 1、定义二维vector 2、访问二维vector的元素的三种方式 如果指定外层和内层向量的大小, 阅读全文
posted @ 2019-04-02 21:53 阿聊 阅读(6518) 评论(0) 推荐(0)