------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------先看一个小程序: 1 class Person 2 { 3 private String name; 4 private int age; 5 Person(...
分类:
其他好文 时间:
2015-08-10 09:22:41
阅读次数:
96
EL表达式--------------------jsp输出-----------------------------------------EL获取对象的属性---------------------${person.name }${person.age }${person.sex }------...
分类:
其他好文 时间:
2015-08-09 22:23:31
阅读次数:
117
一、结构体指针1)结构体指针 指针指向结构体的存储单元 先对结构体的变量取地址2)p指向结构体的起始地址 就是首个成员变量的地址typedef struct teacher{ char name[20]; int age;}Teacher;int main(int argc, const...
分类:
编程语言 时间:
2015-08-09 20:36:24
阅读次数:
154
题目:我年龄的立方是个4位数。我年龄的4次方是个6位数。这10个数字正好包含了从0到9这10个数字,每个都恰好出现1次,求出我今年几岁。 直接拷贝运行就可以了。public class Age { public static void main(String[] args) { ...
分类:
编程语言 时间:
2015-08-09 20:33:16
阅读次数:
161
1.Student.h1 #import 2 3 @interface Student : NSObject {4 int _age;5 }6 - (void)setAge:(int)age;7 - (int)age;8 @end2.Student.m 1 #import "Student....
分类:
编程语言 时间:
2015-08-09 20:27:30
阅读次数:
184
一、点语法(一)认识点语法声明一个Person类: 1 #import 2 3 @interface Person : NSObject 4 { 5 int _age;//默认为@protected 6 } 7 8 - (void)setAge:(int)age; 9 - (int)a...
分类:
其他好文 时间:
2015-08-09 20:26:58
阅读次数:
116
配置applicationContext.xml User.javapublic class User { private int age; private String name; public i...
分类:
数据库 时间:
2015-08-09 16:58:30
阅读次数:
106
Scala Fields in Classes private var定义field class?Student(name:?String,?age:?Int)?{
??private?var?_id:?Int?=?name.hashCode
??def?id:?Int?=?_id?//reader?method
??def?id_=(...
分类:
其他好文 时间:
2015-08-09 02:05:06
阅读次数:
156
创建JavaBeanpackage com.itheima.domain;public class Person { private String name; private int age; private String sex; public Person() { super(); } pub....
分类:
Web程序 时间:
2015-08-08 22:37:25
阅读次数:
120
有时候,我们查询只需要查询bean的某一个部分,而不需要它所有的属性,这时候HQL就可以这样写:
假设有一个类User(省略getter setter):
public class User {
private String name;
private int age;
private boolean sex;
}
如果只需要查询姓名和年龄,则HQL可以这样写:select new U...
分类:
编程语言 时间:
2015-08-08 15:02:37
阅读次数:
317