码迷,mamicode.com
首页 >  
搜索关键字:score    ( 2092个结果
利用结构体计算每个学生的4门课程的平均分,将各科成绩及平均分输出到score.txt中
#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
android.content.res.Resources$NotFoundException:String resource ID #ffffffff
无语,搞了半天,只能去插这个错误代号,结果就找到了这个结果。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
sql-case列转行
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
Oracle中添加视图
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
【C语言】用结构体数组完成:有5个学生(包括学号,姓名,成绩),要求按照成绩高低输出学生信息
//用结构体数组完成:有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
sqlserver sum 和count在关于进行统计时的区别
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
sql语句学习
针对一个表练习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
【C语言】用指针函数完成:有a个学生,每个学生有b门课。要求在输入学生序号后输出该学生成绩
//用指针函数完成:有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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!