上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: 第六章 关系数据理论 6.2 规范化 规范化理论:解决插入异常,删除异常,更新异常,数据冗余的问题 函数依赖 理解 :在我们的二维表中 我有两个属性组 X Y 属性组 属性组X上 如果有两行 X的属性值相同 Y一定相同 X 具有唯一性 定义:两者不可能存在两个元组在X上的属性值相等,而Y上的属性值不 阅读全文
posted @ 2020-05-20 10:16 miao-xixixi 阅读(187) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 4 4 3 2 1 第一反应是 相邻的交换直到排序顺序为从小到大 其实这就是所谓的冒泡法 代码如下: #include<cstdio> #include<iostream> using namespace std; int main(){ int n; cin>>n; int a 阅读全文
posted @ 2020-05-18 23:29 miao-xixixi 阅读(187) 评论(0) 推荐(0)
摘要: 题目如下; 思路: 1.核心思想:利用strcat将所有的字符串拼接在一起 2.值得注意的是 看清楚题目要求 第一个数表示连续有几个0 所以要先判断是否为0 代码如下; #include<cstdio> #include<cstring> #include<iostream> using names 阅读全文
posted @ 2020-05-17 09:59 miao-xixixi 阅读(351) 评论(0) 推荐(0)
摘要: 1.头文件 #include<cstring> 2.用法 char s[100]; cin>>s; int n=strlen(s); 此时的n为串长 阅读全文
posted @ 2020-05-17 09:50 miao-xixixi 阅读(1239) 评论(0) 推荐(0)
摘要: 1.头文件 #include<cstring> 2.strcat()用法 strcar()可以将两个char类型连接。 char d[20]="GoldenGlobal"; char *s="View"; strcat(d,s); 结果放在d中 printf("%s",d); 输出 d 为 Gold 阅读全文
posted @ 2020-05-16 17:04 miao-xixixi 阅读(979) 评论(0) 推荐(0)
摘要: 题目如下: 本质是一个分解质因数 代码如下: #include<cstdio> #include<cmath> #include<algorithm> #include<cstring> #include<iostream> using namespace std; int ans[10001]={ 阅读全文
posted @ 2020-05-07 12:27 miao-xixixi 阅读(204) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 1.人数超过了上限或者下限,直接输出-1 这时候代码就结束了 2.想要达到我过去 你过来 需要把过去的数量全部相加 (不是说我过去了,你就可以不用过去了,不在范围就是不在范围) 与此同时 需要把过来的全部相加 两者取最大值 代码如下: #include<cstdio> #incl 阅读全文
posted @ 2020-05-07 11:46 miao-xixixi 阅读(201) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 1.N*N=每行的所有次数之和 不是所有的数的和!!! 代码如下: #include<cstdio> #include<iostream> using namespace std; int main(){ int n,a; int flag=1; cin>>n; int sum= 阅读全文
posted @ 2020-05-04 22:31 miao-xixixi 阅读(237) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 1.建立一个数组存储26个字母出现的次数 注意数组大小!!! 小写的a-z ascll码为 97-122 大写的A-Z ascll 码为 65-90 所以数组的大小最好>=122 2.注意1和0不是素数 a['b'] 不要以字母的角度看待 要以ascll码看待带单引号的字母 代码 阅读全文
posted @ 2020-04-30 10:42 miao-xixixi 阅读(247) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 读清楚题意,然后就是要自信喔。你能做出来的 代码如下: #include<cstdio> #include<iostream> #include<cmath> using namespace std; int main(){ int n,flag,l=0,sum=0,m=0; c 阅读全文
posted @ 2020-04-29 23:05 miao-xixixi 阅读(196) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页