摘要: #include<stdio.h>#include<iomanip>#include<iostream>#include<cstring>using namespace std;int goback(int);int a[6][6]={{0},{0,0,1,1},{1,1,0,0,1},{0,1,1 阅读全文
posted @ 2016-05-25 16:24 我在四月聆听你的歌声 阅读(192) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int a[6][6]={{0},{0,0,1,1},{1,1,0,0,1},{0,1,1},{1,1,0,1},{0,1,0,0,1}}; int z=0,k=0; for (;k<6;k++) { for (z=0;z<6;z++) pr 阅读全文
posted @ 2016-05-25 15:55 我在四月聆听你的歌声 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ bool k[6]={1}; for (int i=0;i<=5;i++) if (k[i]) printf("1"); return 0;} 简单的代码 得知 Bool k 只是最开始的k【0】被赋值给1; 而 其他的均未被赋值 阅读全文
posted @ 2016-05-25 15:40 我在四月聆听你的歌声 阅读(996) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<iomanip>#include<iostream>using namespace std;bool b[10]={0};int a[10]={0};int print(){ for (int i=1;i<=4;i++) printf("%c ", 阅读全文
posted @ 2016-05-21 20:53 我在四月聆听你的歌声 阅读(214) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>#include<iostream>using namespace std;int print ();bool b[100]={0};int a[100]={0};int n,r; int num=0;int seach(int k){ int j; for (j=1 阅读全文
posted @ 2016-05-21 20:29 我在四月聆听你的歌声 阅读(91) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>#include<cmath>using namespace std;long long n;long long k(long long n){ if (n==3) return 4; if (n==2) return 2; if (n==1) return 1; i 阅读全文
posted @ 2016-05-13 17:04 我在四月聆听你的歌声 阅读(133) 评论(0) 推荐(0) 编辑