会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
神迹丶
学而时习之,不亦说乎?
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
下一页
2020年3月27日
C++ 打印字母塔
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #define MAX 26 void test(char* p) { int num = 0; //定义一个变量记录中间的值 for (int i = 0;
阅读全文
posted @ 2020-03-27 00:19 神迹丶
阅读(1580)
评论(0)
推荐(0)
2020年3月24日
C++ 双链表练习,实现球在屏幕中滚动,排坑
摘要: #include <stdio.h> #include <stdlib.h> #include <easyx.h> //定义一个双链表节点 struct Node { int x; //数据 int y; int z; Node* next; //下个数据 Node* last; //上个数据 };
阅读全文
posted @ 2020-03-24 23:49 神迹丶
阅读(244)
评论(0)
推荐(0)
2020年3月22日
C++ 双链表的 创建、链接、删除
摘要: #include <stdio.h> #include <stdlib.h> //定义一个双链表节点 struct Node { int date; //数据 Node* next; //下个数据 Node* last; //上个数据 }; //定义list存放node指针 struct List
阅读全文
posted @ 2020-03-22 22:59 神迹丶
阅读(806)
评论(0)
推荐(0)
C++顺序表练习
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> typedef struct Array { int* data; //存储的数据 int len; //顺序表的个数 int listsize; //顺序表
阅读全文
posted @ 2020-03-22 10:45 神迹丶
阅读(217)
评论(0)
推荐(0)
2020年3月21日
C++ 选择排序小联系
摘要: #include <iostream> /* 输入一行字符串仅由小写字母所构成。 输出为一行,按 aa, bb, cc, …, zz 在字符串中的出现次数按从多到少, 将 aa, bb, cc, …, zz 排序,不同字母间以一个空格隔开,忽略行末空格。 阐述: 1.计算出现次数时是可重叠的,即在字
阅读全文
posted @ 2020-03-21 11:49 神迹丶
阅读(243)
评论(0)
推荐(0)
2020年3月19日
C++ 双链表理解
摘要: #include <stdio.h> #include <stdlib.h> typedef struct Link { int data; Link* last; //前驱指针 Link* next; //后继指针 }link; struct DataStore { link* head; //头
阅读全文
posted @ 2020-03-19 00:18 神迹丶
阅读(217)
评论(0)
推荐(0)
2020年3月17日
C++ 排序的理解 (选择排序,插入排序)
摘要: #include<stdio.h> #include <iostream> using namespace std; //选择排序的理解:每次循环n-1次,每一次找出一个最大或者最小的值并记录,当每次循环结束时,将找到的值放在末尾或者首部,然后继续循环 void swap(int *a, int *
阅读全文
posted @ 2020-03-17 14:35 神迹丶
阅读(468)
评论(0)
推荐(0)
C++ 文件流操作
摘要: #include<stdio.h> #include <iostream> #include <fstream> using namespace std; int main() { ifstream infile; //以读模式打开文件 infile.open("C:/123.txt"); //打开
阅读全文
posted @ 2020-03-17 11:31 神迹丶
阅读(228)
评论(0)
推荐(0)
2020年3月16日
C++ 指针实现字符串倒序排列
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <string.h> void fun(char *w, int m) { char s, *p1,
阅读全文
posted @ 2020-03-16 19:10 神迹丶
阅读(1940)
评论(0)
推荐(0)
C++ 指针偏移的理解
摘要: //题目:若有程序段int a[5] = { 1, 2, 3, 4, 5 }; int *p = (int *)(&a + 1); printf("%d,%d", *(a + 1), *(p - 1)); 则输出的结果是(),()#define _CRT_SECURE_NO_WARNINGS #in
阅读全文
posted @ 2020-03-16 18:12 神迹丶
阅读(2080)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告
网站已运行: