- 博客(6)
- 收藏
- 关注
原创 TEXT_EDITOR
A text editor that contains delete,insert and search function
2018-11-10 21:30:35 143
原创 递归倒序输出字符串
#include <stdio.h> #include <process.h> void palin() { char next; next = getchar(); if (next == '\n') { putchar(next); printf("Output:\t"); } else { palin(); putchar(next); ...
2018-12-22 19:36:42 897
原创 图书信息管理及排序
#include <stdio.h> #define N 10 struct date { int year; int month; int day; }; struct information { long number; char name[100]; char author[100]; char press[100]; float price; struc...
2018-12-03 23:38:49 2641 1
原创 p257.16_指向指针的指针对n个整数进行排序
#include <stdio.h> //#define DEBUG #ifdef DEBUG void sort(int **p, int n) { int i, j, *temp; for (i = 0;i < n - 1;i++) // 这里是n-1 而不是n 万分注意 { for (j = 0;j < n - 1 - i;j++) { if ...
2018-11-28 08:37:25 204
原创 p194.2_最大公约数&最小公倍数
#include <stdio.h> int zuidagongyueshu(int a, int b) { int x; while (b != 0) { x = b; b = a % b; a = x; } return a; } int zuixiaogongbeishu(int a, int b, int c) { int d; d = a * b ...
2018-11-13 15:32:01 170
原创 多项式计算器(存疑)
该段代码存在漏洞 已注释 想知道malloc分配的内存不能用数字表示数组吗 #include <stdio.h> #include <math.h> #include <stdlib.h> int main(){ int column; double *Array; int i,j; double sum = 0; ...
2018-11-10 22:06:44 187
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人