- 博客(5)
- 收藏
- 关注
转载 通过For 循环打印杨辉三角
include <stdio.h> main() { int i,j,n=0,a[17][17]={0}; while(n<1 || n>16) { printf("请输入杨辉三角形的行数:"); scanf("%d",&n); } for(i=0;i<n;i++) a[i][0]=1; /*第一列全置为一*/ for(i=1;i&...
2019-05-21 09:42:00 503
转载 简易计算器
#include<stdio.h> int main(void) { int a,b,c; char flag; scanf("%d %c %d",&a,&flag,&b); switch(flag) { case '+':c = a + b;break; case '-':c = a - b; break; case...
2019-05-21 09:05:00 109
转载 数据结构上机作业---栈的基本运算
#include<malloc.h>#define MaxSize 100typedef char ElemType;using namespace std;typedef struct linknode{ElemType data;struct linknode*next; }LiStack;void InitStack(LiStack*&s){s=(LiSt...
2019-05-14 09:54:00 258
转载 第一次写博客——单链表的基本操作(未完成)
#include<stdio.h>#include<stdlib.h>#include<string>typedef int datatype;typedef struct Node{DataType data; Node*next; }LinkList; void print(Linklist*list) { printf("链表...
2019-05-07 09:56:00 119
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人