问题:mysql> insert tdb_goods (goods_name,goods_cate,brand_name,goods_price,is_show,is_saleoff) VALUES('Y400N 14.0英寸笔记本','笔记本','联','3990',default,default...
分类:
数据库 时间:
2015-08-15 11:34:44
阅读次数:
167
外部调用 外部调用即是在一个类中调用另一个类的方法 package hello2;//首先定义一个类 public class Book { ??String name; ?String author; ?double price; ?public void getInfo(){ ??//以字符串的形式...
分类:
编程语言 时间:
2015-08-14 11:56:39
阅读次数:
133
【121-Best Time to Buy and Sell Stock(最佳买卖股票的时间)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitt...
分类:
编程语言 时间:
2015-08-14 07:37:48
阅读次数:
196
package com.leegh.pattern_match/** * @author Guohui Li */abstract class Itemcase class Book(description: String,price: Double) extends Itemcase class ...
分类:
其他好文 时间:
2015-08-14 07:37:37
阅读次数:
218
Best Time to Buy and Sell Stock III
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2015-08-13 22:21:51
阅读次数:
180
内存管理:
1.作用范围:
任何继承了NSObject的对象,堆基本数据类型无效如:int
a ,float price;;等
2.原理:
每个对象内部都保存了一个与之相关的整数,称为引用计数器,
当使用alloc
new
copy创建一个对象的时候,对象的引用计数器被设置为1
每给对象发送一次retain消息,可以使引用计数器+1;
给对象发送一条rele...
分类:
其他好文 时间:
2015-08-13 22:13:32
阅读次数:
107
手机内存下的类的设计练习:设计Book类,1.三个成员变量: title(书名)author(作者)、price(价格)2.不使用@property,自己完成存取方法(set方法,get方法)3、加入必要其他的方法4、并对Book类进行测试 .h声明文件 1 // Book.h 2 // ...
分类:
其他好文 时间:
2015-08-13 19:55:04
阅读次数:
269
Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy ...
分类:
其他好文 时间:
2015-08-13 18:07:39
阅读次数:
182
Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as m...
分类:
其他好文 时间:
2015-08-13 18:05:07
阅读次数:
190
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2015-08-12 21:28:06
阅读次数:
125