01 2021 档案

摘要:一.问题 椅子四条腿的椅脚连线呈长方形能在不平的地面上放稳吗? 二.问题分析 经过分析,可以用变量表示椅子的位置,用函数表示椅子四脚与地面的距离,进而用数学语言把模型假设和椅脚同时着地表达出来. 三模型假设 (1)椅子四条腿一样长,椅脚与地面接触处视为一点,四脚的连线呈长方形. (2)地面高度是连续 阅读全文
posted @ 2021-01-28 16:18 泥烟 阅读(1744) 评论(0) 推荐(0)
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 struct student { 6 char id; 7 struct student* next; 8 }; 9 typedef struct student S; 阅读全文
posted @ 2021-01-26 18:30 泥烟 阅读(131) 评论(0) 推荐(0)
摘要:以下只是是一段普普通通的源文件,爆出一堆莫名其妙的错误 查询一番发现: 高版的VS默认不让使用scanf,fopen等函数,说是scanf,fopen等函数不安全,而代替其函数的是scanf_s,fopen_s等函数,后边有个"_s"的形式想要使用,可以在源文件开头加个: #define _CRT_ 阅读全文
posted @ 2021-01-25 19:19 泥烟 阅读(338) 评论(0) 推荐(0)
摘要:头结点:有时,在链表的第一个结点之前会额外增设一个结点,结点的数据域一般不存放数据(有些情况下也可以存放链表的长度等信息),此结点被称为头结点。 若头结点的指针域为空(NULL),表明链表是空表。头结点对于链表来说,不是必须的,在处理某些问题时,给链表添加头结点会使问题变得简单。 首元结点:链表中第 阅读全文
posted @ 2021-01-19 09:05 泥烟 阅读(1686) 评论(0) 推荐(0)
摘要:>>>import this The Zen of Python, by Tim Peters Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex i 阅读全文
posted @ 2021-01-17 17:35 泥烟 阅读(85) 评论(0) 推荐(0)
摘要:一.问题描述:找出所有形如“abc*de”(三位数乘以两位数)的算式,使得在完整的竖式中,所有数字都属于一个特定的数字集合。输入数字集合(相邻数字之间没有空格),输出所有竖式。每个竖式前应有编号,之后应有一个空行。最后输出解的总数。具体格式见样例输出(为了便于观察,竖式中的空格改用小数点显示,但所写 阅读全文
posted @ 2021-01-16 15:29 泥烟 阅读(324) 评论(0) 推荐(0)
摘要:使用前记得复制要发送的内容哦 #include<stdio.h> #include<Windows.h> int main(){ int n; char name[100]; printf("请输入你要轰炸的对象:\n"); scanf("%s",name); printf("请输入你要轰炸的次数: 阅读全文
posted @ 2021-01-15 00:31 泥烟 阅读(5175) 评论(7) 推荐(0)
摘要:示例: 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 int a=100,d=999; 6 char b[10]="1000"; 7 char c[10]="123"; 8 9 itoa(d,c,10); 10 printf( 阅读全文
posted @ 2021-01-07 17:15 泥烟 阅读(324) 评论(0) 推荐(0)
摘要:fscanf和fprintf搭配 1 #include<stdio.h> 2 #include<malloc.h> 3 #include<stdlib.h> 4 typedef struct student{ 5 char name[10]; 6 char num[11]; 7 int age; 8 阅读全文
posted @ 2021-01-05 23:19 泥烟 阅读(279) 评论(0) 推荐(0)