http://poj.org/problem?id=2771
Description
Frank N. Stein is a very conservative high-school teacher. He wants to take some of his students on an excursion, but he is afraid that some of them mi...
分类:
其他好文 时间:
2015-03-10 17:15:41
阅读次数:
122
定义方法pub.cspublicenumgroupid{teacher=1,students=2,Theclass=3,//班级teem=4,//团队inst=5,//机构activity=6//活动}调用方法stringname=Enum.GetName(typeof(pub.groupid),5)name的结果应该是inst
一、设有一数据库,包括四个表:学生表(Student)、课程表(Course)、成绩表(Score)以及教师信息表(Teacher)。四个表的结构分别如表1-1的表(一)~表(四)所示,数据如表1-2的表(一)~表(四)所示。用SQL语句创建四个表并完成相关题目。表1-1数据库的表结构表(一)Stu...
分类:
数据库 时间:
2015-02-26 21:29:07
阅读次数:
298
代码如下: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 Teacher t1 = new Teacher("许大虾", 23, "byvar1024@163.c...
分类:
其他好文 时间:
2015-02-26 16:10:07
阅读次数:
168
主要是理解题目意思,然后就按照它说的来模拟就好了。
Description
A number of students sit in a circle facing their teacher in the center. Each student
initially has an even number of pieces of candy. When the teacher blo...
分类:
其他好文 时间:
2015-02-20 09:46:44
阅读次数:
158
Java类必须包含一个或一个以上的构造器,使用构造器最大的好处就是在创建对象时,对类的Field进行初始化(当创
建一个对象的时候,系统为这个对象的Field进行默认初始化,如果是基本类型如数值型赋值为0,如果是引用类型的
Field赋值为null),如以下代码:
public class Teacher {
private String name;
private in...
分类:
编程语言 时间:
2015-02-17 15:20:54
阅读次数:
224
我们知道在面向对象的程序设计语音中有两个很重要的概念,就是类和对象,其中类是某一批对象的抽象,我们可以
把类理解成某种概念,那对象就是一个具体存在的实体。
在接下来讲解的Java语言就是一门面向对象的程序设计语言,其中类和对象是核心。
在Java中创建类主要如下格式:
public class Teacher {
}
其中修饰符除了public之外,还可以使用其它修饰符,如:final...
分类:
编程语言 时间:
2015-02-16 16:56:49
阅读次数:
234
http://acm.hdu.edu.cn/showproblem.php?pid=3534
Problem Description
In the Data structure class of HEU, the teacher asks one problem: How to find the longest path of one tree and the number...
分类:
其他好文 时间:
2015-02-14 18:56:57
阅读次数:
190
Problem Description
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in t...
分类:
其他好文 时间:
2015-02-12 14:03:30
阅读次数:
168
前言:本文讲解使用Hibernate映射多对多关联关系,并使用多种方式映射多对多关联。1.数据库表的多对多关系 本文根据学生信息表(tb_student)和教师信息表(tb_teacher)来说明多对多映射关系,一个学生有多个老师,一个老师也有多个学生,其数据库模型图如下: 根据以上图,对应的建表语...
分类:
Web程序 时间:
2015-02-08 18:06:06
阅读次数:
388