<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ytswld的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/ytswld</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; ytswld]]></copyright><item><title><![CDATA[字母排序西科大]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/142140992</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/142140992</guid><author>ytswld</author><pubDate>Wed, 11 Sep 2024 15:17:33 +0800</pubDate><description><![CDATA[【代码】字母排序西科大。]]></description><category></category></item><item><title><![CDATA[西科大isbn]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/142066242</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/142066242</guid><author>ytswld</author><pubDate>Mon, 09 Sep 2024 18:39:33 +0800</pubDate><description><![CDATA[【代码】西科大isbn。]]></description><category></category></item><item><title><![CDATA[题目描述随着“开心农场”等娱乐游戏风靡互联网，“偷菜”遂瞬间蹿红网络，席卷网民生活。]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/129438397</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/129438397</guid><author>ytswld</author><pubDate>Fri, 10 Mar 2023 10:53:05 +0800</pubDate><description><![CDATA[随着“开心农场”等娱乐游戏风靡互联网，“偷菜”遂瞬间蹿红网络，席卷网民生活。
于是，“你‘偷’了吗”便成为大家见面的招呼语。很快，数百万都市白领成为“偷菜”队
伍中的主力军，每天在“偷”与防“偷”中乐此不疲，甚至定闹钟半夜起床“偷”菜。根据
“农作物”生长规律而变化制定偷菜时间表。]]></description><category></category></item><item><title><![CDATA[学习c++冒泡排序（王道数据结构）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/125949001</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/125949001</guid><author>ytswld</author><pubDate>Sat, 23 Jul 2022 16:06:24 +0800</pubDate><description><![CDATA[冒泡排序]]></description><category></category></item><item><title><![CDATA[学习c++希尔排序（王道数据结构）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/125947849</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/125947849</guid><author>ytswld</author><pubDate>Sat, 23 Jul 2022 15:03:02 +0800</pubDate><description><![CDATA[希尔排序]]></description><category></category></item><item><title><![CDATA[学习c++插入排序（王道数据结构）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/125940787</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/125940787</guid><author>ytswld</author><pubDate>Fri, 22 Jul 2022 22:02:37 +0800</pubDate><description><![CDATA[插入排序]]></description><category></category></item><item><title><![CDATA[学习c++二叉排序树]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124908341</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124908341</guid><author>ytswld</author><pubDate>Sun, 22 May 2022 11:17:43 +0800</pubDate><description><![CDATA[//中序编列二叉排序树可以得到有序数列
//二叉排序树的查找
BSTNode *BST_Search(BSTree T,int key)
{
    while(T!=NULL&amp;&amp;key!=T-&gt;key)
    {
        if(key&lt;T-&gt;key)
            T=T-&gt;lchild;
        else
            T = T-&gt;rchild;
    }
    return T;
}
//递归实现
BSTNod.]]></description><category></category></item><item><title><![CDATA[学习c++树的双亲表示法，顺序存储（王道数据结构）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124855554</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124855554</guid><author>ytswld</author><pubDate>Thu, 19 May 2022 08:23:13 +0800</pubDate><description><![CDATA[//双亲表示法：每个结点中保存指向双亲的"指针"类似于静态链表
#define MAX_TREE_SIZE 100
typedef struct{      //结点定义
    ElemType data;
    int parent;
}PTNode;
typedef struct{
    PTNode nodes[MAX_TREE_SIZE];
    int n;
}PTree;
//删除一个结点
//空数据遍历更慢，删除结点填充会更简单
//孩子表示法（顺序+链式存储）顺序存储各个结点，每个.]]></description><category></category></item><item><title><![CDATA[学习c++对二叉树的基本操作（王道数据结构二叉树基本操作）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124838617</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124838617</guid><author>ytswld</author><pubDate>Wed, 18 May 2022 11:17:49 +0800</pubDate><description><![CDATA[二叉树]]></description><category></category></item><item><title><![CDATA[学习c++顺序队列的基本操作（王道数据结构顺序队列）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124583541</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124583541</guid><author>ytswld</author><pubDate>Thu, 05 May 2022 10:21:26 +0800</pubDate><description><![CDATA[#define MaxSize 10
typedef struct
{
    ElemType data[MaxSize];
    int front,rear;
}SqQueue;
//顺序队的初始化
void InitQueue(SqQueue &amp;q)
{
    q.front=q.rear=0;
}
//队列判空
bool QueueEmpty(SqQueue q)
{
    if(q.rear == q.front)
        return true;
    else
  .]]></description><category></category></item><item><title><![CDATA[学习c++顺序栈的基本操作（王道数据结构顺序存储栈的实现）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124566554</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124566554</guid><author>ytswld</author><pubDate>Wed, 04 May 2022 10:33:38 +0800</pubDate><description><![CDATA[#define Maxsize 10
typedef struct
{
    ElemType data[MaxSize];
    int top;
}SqStack;
//初始化栈
void InitStack(SqStack &amp;s)
{
    s.top = -1;//top 也可以赋为0，当然相应的赋值操作也要变
    for(int i = 0;i&lt;MaxSize;i++)
    {
        s.data[i]=0;
    }
}
//栈判空
bool Stack.]]></description><category></category></item><item><title><![CDATA[学习c++动态分配数组的顺序表基本操作（王道数据结构顺序表）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124550650</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124550650</guid><author>ytswld</author><pubDate>Tue, 03 May 2022 09:44:46 +0800</pubDate><description><![CDATA[#define InitSize 10
typedef struct{
    ElemType *data;
    int MaxSize;
    int length;
}SeqList;



]]></description><category></category></item><item><title><![CDATA[学习C++静态数组顺序表基本操作（王道数据结构顺序表）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124550584</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124550584</guid><author>ytswld</author><pubDate>Tue, 03 May 2022 09:11:22 +0800</pubDate><description><![CDATA[#define MaxSize 10
typede struct{
    ElemType data[MaxSize];
    int length;
}SqList;
//顺序表的插入
bool ListInsert(SqList &amp;L,int i,ElemType e)
{
    if(i&lt;1||i&gt;L.length+1)
        return false;
    if（L.length +1 &gt;MaxSize）//L.length&gt;=MaxSize同样.]]></description><category></category></item><item><title><![CDATA[学习c++不带头结点的栈的链式存储（王道数据结构栈的链式存储）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124491310</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124491310</guid><author>ytswld</author><pubDate>Fri, 29 Apr 2022 11:00:48 +0800</pubDate><description><![CDATA[//定义栈结点的数据结构
typedef struct LinkStNode
{
    ElemType data;
    struct LinkStNode *next; 
}LinkStNode;//c++不取别名也没啥大问题
//初始化不带头结点的链栈
void InitLinkStack(LinkStNode *&amp;L)
{
     L = NULL://头指针   
}
//销毁不带头结点的链栈  销毁单链表一样的
bool DestroyLinkStack(LinkStNode &.]]></description><category></category></item><item><title><![CDATA[学习c++带头结点的栈的链式存储（王道数据结构栈的链式存储）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124490015</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124490015</guid><author>ytswld</author><pubDate>Fri, 29 Apr 2022 10:39:43 +0800</pubDate><description><![CDATA[//定义栈的结点数据结构
typedef sturct LinkNode
{
    ElemType data;
    struct LinkNode  *next;
}LinkStNode；
//初始化栈
void InitStack(LinkStNode *&amp;L)
{
    L = (LinkStNode *)malloc(sizeof(LinkStNode));
    L-&gt;next = NULL;
}
//销毁一个带头结点的栈
void DestroyStack(LinkSt.]]></description><category></category></item><item><title><![CDATA[学习c++带头结点的链队基本操作（王道数据结构队列的链式存储）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124443554</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124443554</guid><author>ytswld</author><pubDate>Fri, 29 Apr 2022 10:03:33 +0800</pubDate><description><![CDATA[typedef struct DataNode
{
    ElemType data;
    struct DataNode *next;
}DataNode;
typedef struct
{
    DataNode *front;
    dataNode *rear;
}LinkQuNode;
//初始化带头点的链队
void InitQueue(LinkQuNode &amp;q)
{
    q = (LinkQuNode *)malloc(sizeof(LinkQuNode));
   .]]></description><category></category></item><item><title><![CDATA[学习c++不带头节点的单链表的基本操作（王道数据结构单链表链式存储）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124468866</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124468866</guid><author>ytswld</author><pubDate>Thu, 28 Apr 2022 10:49:57 +0800</pubDate><description><![CDATA[//c++不带头结点的单链表的各种操作
typedef struct LNode
{
    ElemType data;
    struct LNode *next;
}LNode,LinkList*;
//不带头结点单链表的初始化
bool InitLinkList(LinkList &amp;L)
{
    L =NULL;
    return true;
}
//不带头结点的判空
bool EmptyList(LinkList &amp;L)
{
    return (L==NULL);
.]]></description><category></category></item><item><title><![CDATA[学习c++带头结点的单链表基本操作（王道数据结构单链表链式存储）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124446553</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124446553</guid><author>ytswld</author><pubDate>Wed, 27 Apr 2022 11:15:07 +0800</pubDate><description><![CDATA[typedef struct LNode
{
    ElemType data;
    struct LNode *next;
}LNode,LinkList *;
//带头结点的单链表的初始化
bool InitList(LinkList &amp;L)
{
     L = (LinkList *)malloc(sizeof(LinkList));
     if(L==NULL)
        return false;
    L-&gt;next = NULL;
    return tr.]]></description><category></category></item><item><title><![CDATA[学习c++不带头结点的链队基本操作（王道数据结构队列的链式存储）]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124442969</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124442969</guid><author>ytswld</author><pubDate>Wed, 27 Apr 2022 09:20:40 +0800</pubDate><description><![CDATA[c++链队不带头结点]]></description><category></category></item><item><title><![CDATA[学习c语言和c++结构体的细微差别]]></title><link>https://blog.youkuaiyun.com/ytswld/article/details/124211721</link><guid>https://blog.youkuaiyun.com/ytswld/article/details/124211721</guid><author>ytswld</author><pubDate>Sat, 16 Apr 2022 12:51:28 +0800</pubDate><description><![CDATA[c语言的结构体

struct stu{

int age;

char[20] name;

};

两种声明变量方式

1、struct stu Student1,Student2;

struct stu Student1;

struct stu Student2;

2、

struct stu{

int age;

char[20] name;

}Students1，Students2;

匿名结构体

struct{

int age;

char[20] name;

}Student1]]></description><category></category></item></channel></rss>