assignments
easymoneysniperxx
这个作者很懒,什么都没留下…
展开
-
p257.16_指向指针的指针对n个整数进行排序
#include <stdio.h>//#define DEBUG#ifdef DEBUGvoid 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 · 200 阅读 · 0 评论 -
图书信息管理及排序
#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 · 2595 阅读 · 1 评论 -
多项式计算器(存疑)
该段代码存在漏洞 已注释想知道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 · 181 阅读 · 0 评论 -
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 · 161 阅读 · 0 评论 -
递归倒序输出字符串
#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 · 892 阅读 · 0 评论