1.含义:结构(struct)是使用 struct关键字定义的,与类相似,都表示可以包含数据成员和函数成员的数据结构。2.申明public struct Student{ public string name; //定义结构时的数据字段是不能赋初始值的 public int age; publi.....
分类:
其他好文 时间:
2014-12-14 21:16:10
阅读次数:
190
一、用到的实体类如下:Student.java[html]view plaincopypackagecom.company.entity;importjava.io.Serializable;importjava.util.Date;publicclassStudentimplementsSeria...
分类:
其他好文 时间:
2014-12-14 13:10:37
阅读次数:
301
//数据类型 package?org.mo.common.structure.tree;
public?class?Student?implements?java.io.Serializable?{
/**
?*?
?*/
private?static?final?long?serialVersionUID?=?1L;
private?...
分类:
编程语言 时间:
2014-12-13 23:27:30
阅读次数:
421
#include
#include
#include
using namespace std;
//学生类
class student
{
private:
string name; //姓名
int age; //年龄
string code; //学号
int nianji; //年纪
...
分类:
编程语言 时间:
2014-12-13 09:41:54
阅读次数:
195
#include
#define NULL 0
struct student
{
long num;
float score;
struct student * next
};
void main()
{
struct student a,b,c, *head, *p;
a.num = 1001;
a.score =...
分类:
其他好文 时间:
2014-12-12 13:24:37
阅读次数:
172
题目1361:翻转单词顺序
时间限制:2 秒内存限制:32 兆特殊判题:否提交:1935解决:572
题目描述:
JOBDU最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I ...
分类:
其他好文 时间:
2014-12-11 22:31:58
阅读次数:
187
SQL数据库的基本语法 一些基本的语句用法,数据库的基础。 Unoin的用法 每个结果集的列数必须有相同的结果,类型必须相同。 eg: select Name from Student union select Age from Student ...
分类:
数据库 时间:
2014-12-11 22:13:20
阅读次数:
375
1 use myDB; 2 insert into student values('1134110116','Tom','男',22,'上海','18272986984','上海'); 3 insert into student values('1134110117','Tom1','男',...
分类:
数据库 时间:
2014-12-11 20:44:39
阅读次数:
242
自我总结,欢迎拍砖!目的:在需要返回int,long等基础类型数据的情况下,尽量在mybatis的Mapper中用基础类型的包装类。原因:当查询的字段为空值时,mybatis会返回null,用基础类型接收则会出现异常,但是用包装类就把这个问题规避了。一.读数据环境准备:创建student表(无主键)...
分类:
其他好文 时间:
2014-12-11 17:17:02
阅读次数:
174
一对多关联查询的解决方案也有两种:嵌套结果和嵌套查询 在上一篇博客中已经讲了一对一的关联查询,在MySQL数据库中已经存在了班级表 class 和教师表 teacher。为了满足一对多关联查询的要求,还需要创建一张学生表 student。这样,在查询班级信息的同时,可以得到教师和学生的信息。创建 ....
分类:
数据库 时间:
2014-12-11 17:16:16
阅读次数:
349