考察以下代码:std::multiset names; //global data structurevoid LogAndAdd(const std::string &name){ auto now = //got...
分类:
编程语言 时间:
2015-01-05 01:49:03
阅读次数:
276
gcc源代码分析,debug_rtx()函数,利器啊
print-tree.c
#include "config.h"
#include "tree.h"
#include
/* Names of tree components.
Used for printing out the tree and error messages. */
#def...
分类:
其他好文 时间:
2015-01-03 22:29:52
阅读次数:
174
1:FragmentHack4.java/** * Created by y on 15-1-2. */public class FragmentHack4 extends Fragment{ View view; List names; ListView lvNames; ...
分类:
其他好文 时间:
2015-01-03 10:35:46
阅读次数:
165
server_names_hash_bucket_size 512;upstream node_app { server 127.0.0.1:3000; }server { listen 80; server_name www.abc.n...
分类:
其他好文 时间:
2015-01-01 18:31:56
阅读次数:
174
Initializers:
1.被初始化的变量在create那一瞬间得到值:double price = 109.99, discount = price * 0.6; 这样的定义是合理的。
Three ways of initialization:
1. int units = 0;
2. int units = {0};
3. int units{0};
4. int...
分类:
编程语言 时间:
2015-01-01 11:19:59
阅读次数:
208
1、问题描述使用mysqldump备份,备份命令:[root@gfsunny105opt]#mysqldump-uroot-p--skip-quote-names--databasestest--tablest>test1.sqlmysqldump:Couldn‘texecute‘SETOPTIONSQL_QUOTE_SHOW_CREATE=1‘:YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyou..
分类:
数据库 时间:
2014-12-31 16:33:18
阅读次数:
831
<?php
Header("Content-type:text/html;charset=utf-8");
error_reporting(E_ALL & ~E_NOTICE);
require_once(ESF_DIR.‘/zjadmin/phpexcel/Classes/PHPExcel.php‘);
$db->query("set names utf8");
$Info_area=...
分类:
Web程序 时间:
2014-12-30 13:42:49
阅读次数:
205
1.命令行使用 f7 查看历史命令 \c 退出执行 1064 语法错误 1046 未选择数据库 1366 数据中有汉字,但未设定字符集 tee D:/abc.sql 可将输入的命令形成sql文件进行保存 set names 编码 设置字符集(命令行默认编码为gbk)2.入门语句 连接...
分类:
数据库 时间:
2014-12-29 21:22:38
阅读次数:
201
cookie-parser的作用,官方的说法是:ParseCookieheader and populatereq.cookieswith an object keyed by the cookie names.我的理解是,转换headers中的cookie并跟req.cookies合并。作为coo...
分类:
Web程序 时间:
2014-12-29 15:13:42
阅读次数:
202
Migrating from Ant to Gradle is very easy with the importBuild method from AntBuilder. We only have to add this single line and reference our existing...
分类:
其他好文 时间:
2014-12-26 20:16:26
阅读次数:
358