![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言顺序表
文章平均质量分 56
bbp之战神
这个作者很懒,什么都没留下…
展开
-
王道题目日常发布(哥德巴赫猜想,字符串合并)
//删除s-t其中的元素void del_s_t(ElemType s,ElemType t,SqList &L){ int i,j; //判断范围 if(s>=t || L.length==0){ printf("Error!"); } //找到第一个要删除的元素 for(i=0;i<L.length && L.data[i]<s;i++); //判断范围 if(i>=L.l.原创 2021-07-26 16:10:21 · 137 阅读 · 0 评论 -
王道日常发布
//P17 2void reverse(SqList &L){ int temp; for(int i=0;i<L.length/2;i++){ temp=L.data[i]; L.data[i]=L.data[L.length-1-i]; L.data[L.length-1-i]=temp; }}//P17 3void del_x(SqList &L,ElemType e){ int i,k=0.原创 2021-07-24 23:25:24 · 86 阅读 · 0 评论 -
c语言文件操作,日常记事~~
void openFile(){ FILE *fp=fopen("d:/1.txt","w"); if(fp==NULL){ perror("Error"); } fclose(fp); fp=NULL;}void writeFile(){ //打开文件 FILE *fp=fopen("d:/1.txt","w"); char ch='a'; if(fp==NULL){ perror("Error".原创 2021-07-19 23:55:11 · 8986 阅读 · 2 评论 -
c语言求单词数目,水仙花数,斐波拉契数列,九九乘法表等等相关题目
#include<stdio.h>#include<math.h>#include<stdlib.h>#include<string.h>//获得字符void getChar(){ int age; printf("请输入年龄:"); age=getchar(); putchar(age);}//水仙花数void printDaffodil(){ int a,b,c; for(int i=100.原创 2021-07-15 23:31:51 · 943 阅读 · 4 评论 -
数据结构基于顺序表相关的排序算法
#include <stdio.h>#include <stdlib.h>#include <math.h>#define maxsize 500//定义顺序表typedef struct SSTable{ int data[maxsize]; int len;}SSTable;//初始化顺序表void InitList(SSTable &ST){ for(int i=0;i<maxsize;i++){ .原创 2021-05-30 22:52:02 · 549 阅读 · 1 评论