#include using namespace std;int main(int argc, const char * argv[]){//cin接收键盘输入 int age; double height; char name[10];// cout 在控制台输出一些信息// 相当于c语...
分类:
编程语言 时间:
2014-07-09 00:37:35
阅读次数:
270
创建表 列名 类型,
1...create table Student (id integer , name text, sex text, age integer)
2…create table if not exists Student (id integer , name text default '张三' , sex text n...
分类:
数据库 时间:
2014-07-08 18:47:19
阅读次数:
213
继续在上一节的类的基础上测试继承:#-*-coding:utf-8import Syntax2class Student(Syntax2.Person): def __init__(self,name,age): Syntax2.Person.__init__(self,nam...
分类:
编程语言 时间:
2014-07-06 23:19:57
阅读次数:
310
count组函数:(过滤掉空的字段)select count(address),count(*) from b_usermax() avg() min(),sum()select sum(age),max(age),min(age),avg(nvl(age,0)) from b_user1 260 ...
分类:
数据库 时间:
2014-07-06 12:58:24
阅读次数:
364
最近对内存管理,有了一些新的认识,以前只知道alloc,或者retain,或者copy,之后需要release或者autorelease;
只知其一,但是在工作学习中仅仅知道这些是不够用的,还需要知道属性等内部的内存存管理才行.
@property (readwrite,nonatomic,assign)NSInteger age;
@property (readwrite,no...
分类:
其他好文 时间:
2014-07-04 09:31:10
阅读次数:
354
一、向手机内存的data//shared_prefs文件下写入.xml为后缀的偏好参数(sharedPreferences)文件/** * * @param name 需保存的信息 * @param age 需保存的信息 */ public void sav...
分类:
移动开发 时间:
2014-07-03 12:12:47
阅读次数:
244
jquery的extend方法的用法1. [代码][JavaScript]代码 010304 05 06 jquery继承07 08 09 对象继承{name:"ws",age:"23"}11 12 13 全局方法继承$.hello()14 ...
分类:
Web程序 时间:
2014-07-02 23:55:46
阅读次数:
349
很多时候我们需要在数据实体层读取数据后赋值到领域模型时往往会产生如下的代码 1 public class A 2 { 3 public string Name {get;set;} 4 public int Age {get;set;} 5 } 6 ...
分类:
其他好文 时间:
2014-07-02 19:43:51
阅读次数:
123
1、断言
let age = -3
assert(age >= 0, "A person's age cannot be less than zero")
// 因为 age
2、Swift赋值符(=)不返回值,以防止把想要判断相等运算符(==)的地方写成赋值符导致的错误。数值运算符(+,-,*,/,%等)会检测并不允许值溢出。
3、在对负数b求余时,b的符号会被忽略。这意味着 a %...
分类:
其他好文 时间:
2014-07-02 11:46:51
阅读次数:
286
prototype的经典使用场景就是为对象增加属性和方法,如给自定义的Man对象增加个姓名属性和语言方法:
function man() {
this.age = "22";
}
var tom = new man();
man.prototype.name = "tom";
man.prototype.say = function () {
...
分类:
编程语言 时间:
2014-07-02 08:50:51
阅读次数:
261