摘要: 代码 #include<iostream>#include<algorithm>#include<string>#include<cstring>#include<cstdio>#include<queue>#include<vector> using namespace std; int main 阅读全文
posted @ 2017-07-24 15:04 xyzllm 阅读(79) 评论(0) 推荐(0)
摘要: #include<stack> stack<int>s; s.push();//进栈 s.top();//取出栈顶元素 s.pop();//删除栈顶元素 s.size();//返回栈的大小 s.empty();//返回1 栈为空 0不为空 输入 while(1) { int n; cin>>n; i 阅读全文
posted @ 2017-07-23 20:59 xyzllm 阅读(86) 评论(0) 推荐(0)
摘要: 赋值 string s=“abcd4”; cin>>s;遇到空格结束 getline(cin,s);遇到换行结束 比较 都有 添加 s+= 在s后面添加 删除 s.erase(4,8);删除从4起 的八个字符 阅读全文
posted @ 2017-07-23 20:30 xyzllm 阅读(57) 评论(0) 推荐(0)
摘要: 代码 #include<cstdio>#include<iostream>using namespace std;int main(){ while(1) { char ch; double a[200]={0},sum=0,n; int i=0; cin>>a[0]; if(a[0]==0&&(g 阅读全文
posted @ 2017-07-20 09:20 xyzllm 阅读(107) 评论(0) 推荐(0)
摘要: #include<cstdio>#include<iostream>using namespace std;const int N=5005;int main(){ int T; scanf("%d",&T); while(T--) { int n,a[N]={0}; scanf("%d",&n); 阅读全文
posted @ 2017-07-19 09:31 xyzllm 阅读(89) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-07-17 12:42 xyzllm 阅读(3) 评论(0) 推荐(0)
摘要: 这是什么样的开始呢?期待 阅读全文
posted @ 2017-07-16 19:55 xyzllm 阅读(72) 评论(1) 推荐(1)