#include "stdafx.h"#include #include typedef struct date{ int year; int month; int day;}DATE;typedef struct student{ long studentID; ch...
分类:
其他好文 时间:
2015-04-18 10:01:26
阅读次数:
128
无语,搞了半天,只能去插这个错误代号,结果就找到了这个结果。scoreTextView.setText(score+"");这个一定要自己手动转换。。不科学啊。。关键是在eclipse里的提示错误让人以为是id写错了什么的。以下是别人的一片文章:http://www.blogjava.net/anc...
分类:
移动开发 时间:
2015-04-17 22:09:58
阅读次数:
150
添加外键约束名字一定不能重复如何添加外键方法一:直接在属性值后面添加create table score(cscore int(11),st_id int(50) references student(id),cs_id int(30) references classes(id),primary ...
分类:
其他好文 时间:
2015-04-17 20:07:00
阅读次数:
200
1:对列进行逻辑判断select ID,Score,case when Score>=90 then 'A' when Score>=80 then 'B' when Score>=70 then 'C' when Score>=60 then 'D' when Score>=50 then 'E'...
分类:
数据库 时间:
2015-04-17 15:31:56
阅读次数:
210
CREATEorREPLACEviewview_willas selectcollege.collegeid,mat.stuid,sum(score.chinese+score.math+score.english+score.complex)fromcollege,mat,scorewhereco...
分类:
数据库 时间:
2015-04-14 16:11:39
阅读次数:
170
//用结构体数组完成:有5个学生(包括学号,姓名,成绩),要求按照成绩高低输出学生信息
#include
struct Stu
{
int num;
char name[20];
int score;
};
int main()
{
int i,j;
struct Stu student[5]={{317,"han",89},{318,"hu",50},{319,"kang",84},...
分类:
编程语言 时间:
2015-04-13 23:05:40
阅读次数:
357
sum是对内容的数量进行相加,count 对表行数 对象进行统计在使用 case 时,如select subject,count(case when score>80 then score else null end) 优,count(case when score59 then score...
分类:
数据库 时间:
2015-04-13 22:40:29
阅读次数:
176
针对一个表练习1.建表create table student(name Char(20),curriculum Char(20),score Char(20));插入数据: INSERT INTO student (name,curriculum,score) VALUES('王五','数学','100');mysql> select * from student;+--------+-----...
分类:
数据库 时间:
2015-04-13 16:41:56
阅读次数:
185
//用指针函数完成:有a个学生,每个学生有b门课。要求在输入学生序号后输出该学生成绩
#include
float * search(float (* pointer )[4],int n) //形参pointer是一个数组指针
{
float *pt;
pt=*(pointer+n);
return pt;
}
int main()
{
float score[][4]={{60,...
分类:
编程语言 时间:
2015-04-12 00:06:05
阅读次数:
265
#include struct score{ float grade[5]; float avegrade,maxgrade,mingrade;};void main(){ int i; struct score m; printf("input the grade o...
分类:
其他好文 时间:
2015-04-11 19:16:14
阅读次数:
118