06 2021 档案

摘要:#include <stdio.h> #include <stdlib.h> #include <string.h> #define LEN sizeof(struct book) struct book{ char name[20]; int status; char author[20]; st 阅读全文
posted @ 2021-06-15 20:42 不浪费时光 阅读(50) 评论(0) 推荐(0) 编辑
摘要:输入字符串str、sub,查找sub在str首次出现的位置(下标)。例如str= " 123aba3abc", sub= “3ab ",sub在str中首次出现的下标为2,sub、 str长度 不超过50。 输入格式: 输入包括两行,依次是字符串str, sub. 输出格式: sub在str中首次出 阅读全文
posted @ 2021-06-15 20:39 不浪费时光 阅读(3869) 评论(0) 推荐(0) 编辑
摘要:1.2 实体之间的关系 1.2.1 一对多(1:N) 主表中的一条记录对应从表中的多条记录 实现一对多的方式:主键和非主键建关系 问题:说出几个一对多的关系? 班主任表——学生表品牌表——商品表 1.2.2 多对一(N:1) 多对一就是一对多 1.2.3 一对一(1:1) 如何实现一对一:主键和主键 阅读全文
posted @ 2021-06-14 16:40 不浪费时光 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h>#include <stdlib.h>#define LEN sizeof(struct node)struct node{ int data; struct node *next;};struct node * create() //创建链表{ struct n 阅读全文
posted @ 2021-06-11 23:07 不浪费时光 阅读(60) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h>#include <string.h>int main(){ int x,n,i,f=0,v=0,j=0,k,l,g=0; char book[6][50]={"马保国的闪电五连鞭","大郎该吃药了","山东菏泽曹县的秘密","舔狗日记","就是玩"}; char 阅读全文
posted @ 2021-06-11 22:53 不浪费时光 阅读(87) 评论(0) 推荐(0) 编辑
摘要:from turtle import* from math import* from random import* speed(0) bgcolor('black') w=window_width() h=window_height() pencolor('yellow') for i in ran 阅读全文
posted @ 2021-06-11 22:50 不浪费时光 阅读(120) 评论(0) 推荐(0) 编辑
摘要:一对兔子,从出生后第3个月起每个月都生一对兔子。小兔子长到第3个月后每个月又生一对兔子。假如兔子都不死,请问第1个月出生的一对兔子,至少需要繁衍到第几个月时兔子总数才可以达到N对? 输入格式:输入在一行中给出一个不超过10000的正整数N。 输出格式:在一行中输出兔子总数达到N最少需要的月数。——— 阅读全文
posted @ 2021-06-08 17:52 不浪费时光 阅读(908) 评论(0) 推荐(0) 编辑
摘要:MySQL中的数据类型是强类型 1.2.1 数值型 1、 整型 整形占用字节数范围 tinyint 1 -128~127 smallint 2 -32768~32767 mediumint 3 -8388608~8388607 int 4 -2147483648~2147483647 bigint 阅读全文
posted @ 2021-06-08 17:15 不浪费时光 编辑
摘要:命令行链接服务器: host -h 主机 port -P 端口号 (大写) user -u 用户名 password -p 密码 (小写) 退出登录 mysql> exit -- 方法一 mysql> quit -- 方法二 mysql> \q -- 方法三 数据库、表相关 1. 数据库:数据库中存 阅读全文
posted @ 2021-06-01 19:29 不浪费时光 编辑

点击右上角即可分享
微信分享提示