1 struct bigint{ 2 int a[500]; //可表示1000位以内的整数 3 bigint& operator*(int & value){ 4 for(int i=0;i<300;i++) 5 a[i]=a[i]*value; 6 int c=0; 7 for(int i=0;
分类:
其他好文 时间:
2016-01-30 17:58:30
阅读次数:
204
begin try begin transaction --开始事务 DECLARE @myMemberID NVARCHAR(36) ,--用户ID @myBizID NVARCHAR(36) , @myBizType NVARCHAR(36) --业务ID SET @myMemberID = '
分类:
其他好文 时间:
2016-01-30 17:57:31
阅读次数:
136
@interface MyTableViewCell : UITableViewCell @property (nonatomic, retain) UIImageView *headerImageView; @property (nonatomic, retain) UILabel *titleL
分类:
其他好文 时间:
2016-01-30 17:56:31
阅读次数:
239
一 printf和scanf(printf和scanf是c语言中的输入输出库函数) printf(”格式控制“,输出列表) <1>格式控制 其中包含 格式声明(%+相应格式对应字母)、转义字符(\n)、格式附加字符(左靠)、和普通字符(普通字符会原样输出) 1格式声明:%+d或i(整型),f(浮点型
分类:
其他好文 时间:
2016-01-30 17:56:32
阅读次数:
155
使用Parse package main import ( "html/template" "net/http" ) func SayHello(w http.ResponseWriter, req *http.Request) { name := "克莱普斯" tmpl, _ := templat
分类:
其他好文 时间:
2016-01-30 17:57:56
阅读次数:
151
59. Spiral Matrix II 题目 这道题copy网上的代码 1 class Solution { 2 private: 3 int step[4][2]; 4 bool canUse[100][100]; 5 public: 6 void dfs(int dep, vector<vec
分类:
其他好文 时间:
2016-01-30 17:57:03
阅读次数:
162
基础练习 杨辉三角形 时间限制:1.0s 内存限制:256.0MB 问题描述 杨辉三角形又称Pascal三角形,它的第i+1行是(a+b)i的展开式的系数。 它的一个重要性质是:三角形中的每个数字等于它两肩上的数字相加。 下面给出了杨辉三角形的前4行: 1 1 1 1 2 1 1 3 3 1 给出n
分类:
其他好文 时间:
2016-01-30 17:55:29
阅读次数:
147
py3start 迭代器迭代器是访问集合元素的一种方式。迭代器对象从集合的第一个元素开始访问,直到所有的元素被访问完结束。迭代器只能往前不会后退,不过这也没什么,因为人们很少在迭代途中往后退。另外,迭代器的一大优点是不要求事先准备好整个迭代过程中所有的元素。迭代器仅仅在迭代到某个元素时才计算该元素,...
分类:
其他好文 时间:
2016-01-30 17:54:58
阅读次数:
143
1.替换nginx主配置文件 通过前面的配置,LNMP的环境已经搭建完成,现在我们替换nginx配置文件: [root@huh ~]# cd /usr/local/nginx/conf/[root@huh conf]# > nginx.conf[root@huh conf]# vim nginx.c
分类:
其他好文 时间:
2016-01-30 17:53:51
阅读次数:
215
54、Spiral Matrix 题目: 题目意思很简单,就是螺旋式访问矩阵元素。也没有比较经典的算法可以解决此题,只需要模拟一下这个过程即可。 代码如下: 1 class Solution { 2 public: 3 vector<int> spiralOrder(vector<vector<in
分类:
其他好文 时间:
2016-01-30 17:55:23
阅读次数:
163
51、N-Queens ---------------------------------------------------------------------------------分割线------------------------------------------------------
分类:
其他好文 时间:
2016-01-30 17:56:20
阅读次数:
127
几乎所有程序员都听说过Junit的大名,但不知真正懂得运用它的人有多少,我便是其中的一个小白。 知道Junit是用来测试的,但却把“宝刀”当成了“菜刀”用。为了从此不再菜鸟,特此总结整理了下Junit的知识点。 开始之前确保你的项目引入了junit-xxx.jar和hamcrest-core-xxx
分类:
其他好文 时间:
2016-01-30 17:56:03
阅读次数:
273
一、安装配置LAMP环境 yum -y install httpd php php-mysql php-snmp php-xml php-gd mysql mysql-server 启动http和mysql service httpd start service mysqld start 执行mys
分类:
其他好文 时间:
2016-01-30 17:54:51
阅读次数:
182
DOS批处理中%cd%和%~dp0的区别 在DOS的批处理中,有时候需要知道当前的路径。 在DOS中,有两个环境变量可以跟当前路径有关,一个是%cd%, 一个是%~dp0。 这两个变量的用法和代表的内容是不同的。 1. %cd% 可以用在批处理文件中,也可以用在命令行中; 展开后,是驱动器盘符:+当
分类:
其他好文 时间:
2016-01-30 17:55:16
阅读次数:
151
Description Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digi
分类:
其他好文 时间:
2016-01-30 17:52:35
阅读次数:
225
adapter中: 1 private List<Integer> checkboxUserIdList = new ArrayList<>(); 在如下这个方法中: 1 public void onBindViewHolder(final RecyclerView.ViewHolder holde
分类:
其他好文 时间:
2016-01-30 17:52:20
阅读次数:
178
startpy3一.装饰器基本原理与实现例子1:#!/usr/bin/python#coding=utf-8#py3def login(func): #func=tv print("passed user verification...") return func #返回func,即是tv的内存地址...
分类:
其他好文 时间:
2016-01-30 17:53:38
阅读次数:
190