- 博客(3)
- 收藏
- 关注
原创 swust oj 1043 后缀表达式的计算
#include<stdio.h> int main() { char ch,c[100]; int i=0,a[100]; for(;ch!='#';) { scanf("%c",&ch); if(ch=='+'){a[i-2]=a[i-2]+a[i-1];i=i-1;} else if(ch=='-'){a[i-2]=a[i-2]-a[i-1];i=i-1;...
2018-04-17 21:17:16 943
原创 swust oj 1040 一元多项式加法运算的实现
#include<stdio.h> #include<string.h> int main() { int x,z; while(scanf("%d,%d",&x,&z)) { int a[1005]={0}; a[z]=x; if(x==0&&z==0)break; while(1) { scanf("%d,...
2018-04-17 13:32:37 1585 1
原创 swust oj 一元多项式加法运算的实现(1040)--链表实现
#include "iostream" #include "stdio.h" using namespace std; typedef int ElemType; typedef struct Node { ElemType i; // 指数 ElemType c; // 系数 Node *next; }*pNode; void Creat(pNode &...
2018-04-17 13:26:56 846 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人