创建数据库
creat table test(
#整数通常使用int
test_id int,
#小数通常使用decimal
test_price decimal,
#普通文本通常使用,并使用Default指定默认值
test_name varchar(255) default "Xxx",
#大文本类型使用test
test_desc text,
#图片使用blob
tes...
分类:
数据库 时间:
2014-10-22 14:42:51
阅读次数:
320
创建数据库
creat table test(
#整数通常使用int
test_id int,
#小数通常使用decimal
test_price decimal,
#普通文本通常使用,并使用Default指定默认值
test_name varchar(255) default "Xxx",
#大文本类型使用test
test_desc text,
#图片使用blob
tes...
分类:
数据库 时间:
2014-10-22 14:42:48
阅读次数:
153
登录后台-工具-安装SQL脚本(Install SQL Patches)运行以下语句:insert into specials (`products_id`, `specials_new_products_price`, `specials_date_added`, `specials_last_m...
分类:
其他好文 时间:
2014-10-22 12:47:54
阅读次数:
155
1、检索数据1.1、检索单个列:SELECT prod_name FROM products;1.2、检索多个列:SELECT prod_id, prod_name, prod_price FROM products;1.3、检索所有列:SELECT * FROM products;1.4、检索不同...
分类:
数据库 时间:
2014-10-21 00:35:20
阅读次数:
427
题目:求一个整数的重复拆分,限制拆分数的个数。
分析:dp,二维多重背包。整数拆分就用背包。
状态:设f(i,j)为j拆分成i个元素的拆法;
转移:f(i,j)= sum(f(i-1,j-k),f(i-1,j-2k),...,f(i-1,j-mk)){ 其中,1 ≤ k ≤ j };
因为输入格式WA好多次,...
分类:
其他好文 时间:
2014-10-20 23:28:29
阅读次数:
340
Math.Round函数四舍五入的问题今天客户跑过来跟我说,我们程序里面计算的价格不对,我检查了一下,发现价格是经过折算后的价格,结果是可能小数位较多,而单据上只能打印两位价格,所以就对价格调用Math.Round(price,2)函数进行四舍五入。而出现问题的单价就是1.805,函数Math.Ro...
分类:
其他好文 时间:
2014-10-20 16:47:30
阅读次数:
110
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...
分类:
其他好文 时间:
2014-10-19 22:35:19
阅读次数:
165
这几天看代码,看到几种类型的结构体,结构声明如下:
struct book{
string name;
int price;
int num;
};
此种结构定义结构变量的格式如下:
struct book student;
struct book{
string name;
int price;...
分类:
其他好文 时间:
2014-10-19 18:39:26
阅读次数:
270
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2014-10-18 22:14:23
阅读次数:
151
1.动态调整文字大小NSString *dPriceString = [NSString stringWithFormat:@"¥%d",model.price]NSMutableAttributedString *dPrice = [[NSMutableAttributedString allo....
分类:
其他好文 时间:
2014-10-17 13:45:12
阅读次数:
180