#include <stdio.h>#include <stdlib.h>#include <time.h>int main() { int i; int num1, num2; int op,result, score=0; char oper[]={'+','-','*','/'}; srand ...
分类:
其他好文 时间:
2018-10-08 19:38:04
阅读次数:
198
cctype 一般用来处理单个字符 如字符测试(如果这个字符是空格 输出真值否则为假 )字符变换(大小写更改) string 基本上字符串类型的都可以 array 是一个数组模板类 可以生成一个定长数组 用法array<类型名, 元素个数> 数组名; 例:array<int,4>score={56, ...
分类:
其他好文 时间:
2018-10-08 12:59:23
阅读次数:
182
一.建表 1.建立两张表CLASSINFO,STUDENTINFO. 2.在两张表中插入数据。 3.在两张表中添加字段。 4.在新添加的字段中添加数据。 5.表CLASSINFO和STUDENTINFO如下所示。 ps:score字段的添加和插入数据参考上例。 二.高级多表数据查询。 2.1 RAN ...
分类:
数据库 时间:
2018-10-07 21:31:34
阅读次数:
211
score = 20if score >= 60: print("你已经及格") if score >= 80: print("你很优秀") else: print("你只是一般般")else: print("不及格") if score < 30: print("学渣") else: ... ...
分类:
编程语言 时间:
2018-10-06 16:42:21
阅读次数:
167
#include "pch.h"#include <iostream>using namespace std;int main(){ float score; int a; char p; while(true) { cout << "please input a score:"; cin >>sc ...
分类:
其他好文 时间:
2018-10-01 16:10:01
阅读次数:
323
ZSET 特点: 类似set集合,有序,元素为字符串,每个元素都关联着一个浮点分数值,并按照分值由小到大的顺序排列 ZADD: 增加一个或者多个元素 ZADD key [NX|XX] [CH] [INCR] score member [score member ...] ZREM:移除一个或多个元素 ...
分类:
其他好文 时间:
2018-09-30 14:42:35
阅读次数:
179
四张表 ,学生、课程、分数、教师。 student(学号#,姓名,性别,年龄) course(课程号#,课程名,教师号#) score(学号#,课程号#,成绩) teacher(教师号#,教师名) 查询平均成绩大于60分的同学的学号和平均成绩 select stuNo,avg(score) from ...
分类:
数据库 时间:
2018-09-28 17:35:00
阅读次数:
452
原文链接:http://doc.redisfans.com/sorted_set/index.html SortedSet的数据结构类似于Set,不同的是Sorted中的每个成员都分配了一个值(Score)用于对其中的成员进行排序(升序)。 zadd key score member[[score ...
分类:
其他好文 时间:
2018-09-25 14:11:58
阅读次数:
188
score.java package score; public class score { String name; String num; int age; boolean sex; double score; String one; public score() { } public void ...
分类:
编程语言 时间:
2018-09-24 23:17:02
阅读次数:
184
1、统计及格与不及格的人数 select count(case when score>=60 then 1 end)及格, count(case when score<60 then 1 end)不及格 from table 2、统计各班(或者各门课)及格与不及格人数 select cid, sum ...
分类:
其他好文 时间:
2018-09-22 21:11:56
阅读次数:
154