主要备忘:DATE_FORMAT 函数1:微博对比图(按日统计)SELECT DATE_FORMAT(tw.article_publish_time, '%Y-%m-%d'),count(page_id) FROM `tab_weibo` tw where tw.page_id =100206507...
分类:
数据库 时间:
2014-07-06 22:37:48
阅读次数:
291
Publishing failed with multiple errors在使用eclipse发布项目时不能自动生成class文件,且无法启动调试的Tomcat服务。启动过程提示 以上 异常解决方案:刷新工程即可问题产生原因:使用了 转码工具对代码进行格式转换,后启动就提起Publishing f...
分类:
其他好文 时间:
2014-07-05 18:38:23
阅读次数:
239
一、什么是可变参数
我们在C语言编程中有时会遇到一些参数个数可变的函数,例如printf()函数,其函数原型为:
int printf( const char* format, ...);
它除了有一个参数format固定以外,后面跟的参数的个数和类型是可变的(用三个点“…”做参数占位符),实际调用时可以有以下的形式:
printf("%d",i);
printf("%s",s...
分类:
其他好文 时间:
2014-07-05 10:38:06
阅读次数:
199
在使用git pull、git push、git clone会报类似如下的错误:
error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/zemo/demo.git/info/refs
fatal: HTTP request failed
一般...
分类:
系统相关 时间:
2014-07-04 09:27:03
阅读次数:
589
将输入的一行读到string中不需要像用数组那样,考虑给多少大小的空间,这可以使得做acm题更加方便。
c++98有两个函数可以读一行到string中,如下:
istream& getline (istream& is, string& str, char delim);
istream& getline (istream& is, string& str);
例子:
#in...
分类:
编程语言 时间:
2014-07-04 07:52:26
阅读次数:
285
步骤/方法
分三个步骤
在头文件中声明函数例如
afx_msg void onNum(UINT uID)
在.cpp文件中添加函数体
void CCalculatorDlg::OnNum(UINT uID)
{
UINT index=uID-IDC_NUM_0;
CString num;
num.Format(_T("%d"),index);
A...
分类:
其他好文 时间:
2014-07-04 00:38:58
阅读次数:
307
php_memcached.dll csdn资源
memcached在windows7上的安装问题
错误:
通过cmd命令行进入到D:\webEve\memcached(下载后的解压目录)
运行 memcached.exe -d install
报错“ failed to install service or service already ins...
谷歌发布了安卓L的源代码,据说是Google历史上最深入的版本更新。虽然咱不搞安卓但是看看源代码还是蛮有意思的。于是就想把源代码下载下来,项目开源的主页https://android.googlesource.com/?format=HTML有一个下载说明,但是后面有个name是下面对应的每个文件夹...
分类:
移动开发 时间:
2014-07-03 23:37:21
阅读次数:
370
错误信息:
When I ran Hardware Event-based Sampling Analysis 0, it showed the ERROR:
Collection failed
Collection failed. The data cannot be displayed.
PMU resource(s) currently being used by...
分类:
其他好文 时间:
2014-07-03 17:12:20
阅读次数:
338
Substrings
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
You are given a string S which cons...
分类:
其他好文 时间:
2014-07-03 16:52:59
阅读次数:
166