摘要: //求平均数 阅读全文
posted @ 2017-05-07 18:55 mykonons 阅读(97) 评论(0) 推荐(0) 编辑
摘要: /* X轴上方为陆地下方为水水每年让陆地收缩50平方英里输入第一行为数据组数其余为X,Y坐标判断水多少年能冲击到座标上*/ #include<iostream>#include<math.h>using namespace std;#define PL 3.1415926 int main(){ d 阅读全文
posted @ 2017-05-07 18:52 mykonons 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std;int main(){ double n,s; int i; while(cin>>n&&n<5.20&&n>0.01) { s=0,i=1; //注意不要再这定义S,I否则只初始化一次 while(s<n) { s+=1 阅读全文
posted @ 2017-05-07 10:11 mykonons 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<iostream>#include<malloc.h>#include<stdlib.h>#include<string.h>using namespace std;#define maxsize 60typedef struct node{ in 阅读全文
posted @ 2017-03-24 13:53 mykonons 阅读(1580) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<iostream>#include<malloc.h>#include<stdlib.h>#include<string.h>using namespace std;#define maxsize 60typedef struct node{ in 阅读全文
posted @ 2017-03-24 13:49 mykonons 阅读(3990) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<stdio.h>#include<malloc.h>#include<string.h>#include<stdlib.h>#define maxsize 100using namespace std;typedef struct node{ c 阅读全文
posted @ 2017-03-22 16:26 mykonons 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: //将12345依次入栈,取栈顶元素,将6,7入栈,求栈中元素个数,将7出栈,将6出栈,将5出栈,最后全部出栈依次输出 #include<iostream>#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define maxsize 100 阅读全文
posted @ 2017-03-22 15:32 mykonons 阅读(12718) 评论(0) 推荐(0) 编辑
摘要: //将123456依次入栈,将45出栈,再将67进栈最后全部出栈依次输出 #include<iostream>#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define maxsize 100using namespace std;typ 阅读全文
posted @ 2017-03-22 14:27 mykonons 阅读(340) 评论(0) 推荐(0) 编辑
摘要: //将123456依次入栈,将45出栈,再将67进栈最后全部出栈依次输出 #include<iostream>#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define maxsize 100using namespace std;typ 阅读全文
posted @ 2017-03-22 13:22 mykonons 阅读(4110) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<malloc.h>#include<stdlib.h>#include<stdio.h>using namespace std;typedef struct node{ float xs; int zs; struct node *next; } 阅读全文
posted @ 2017-03-21 21:05 mykonons 阅读(158) 评论(0) 推荐(0) 编辑