摘要: #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 神迹丶 阅读(1459) 评论(0) 推荐(0) 编辑
摘要: #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 神迹丶 阅读(238) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> //定义一个双链表节点 struct Node { int date; //数据 Node* next; //下个数据 Node* last; //上个数据 }; //定义list存放node指针 struct List 阅读全文
posted @ 2020-03-22 22:59 神迹丶 阅读(782) 评论(0) 推荐(0) 编辑
摘要: #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 神迹丶 阅读(214) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> /* 输入一行字符串仅由小写字母所构成。 输出为一行,按 aa, bb, cc, …, zz 在字符串中的出现次数按从多到少, 将 aa, bb, cc, …, zz 排序,不同字母间以一个空格隔开,忽略行末空格。 阐述: 1.计算出现次数时是可重叠的,即在字 阅读全文
posted @ 2020-03-21 11:49 神迹丶 阅读(240) 评论(0) 推荐(0) 编辑
摘要: #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 神迹丶 阅读(213) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include <iostream> using namespace std; //选择排序的理解:每次循环n-1次,每一次找出一个最大或者最小的值并记录,当每次循环结束时,将找到的值放在末尾或者首部,然后继续循环 void swap(int *a, int * 阅读全文
posted @ 2020-03-17 14:35 神迹丶 阅读(427) 评论(0) 推荐(0) 编辑
摘要: #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 神迹丶 阅读(218) 评论(0) 推荐(0) 编辑
摘要: #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 神迹丶 阅读(1885) 评论(0) 推荐(0) 编辑
摘要: //题目:若有程序段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 神迹丶 阅读(1959) 评论(0) 推荐(1) 编辑
网站已运行: