Keep the Build CleanJohannes BrodwallHAVE YOU EVER LOOKED AT a list of compiler warnings the length of an essay on bad coding and thought to yourself, “You know, I really should do something about that...
分类:
其他好文 时间:
2015-05-12 11:22:03
阅读次数:
132
# mongo
MongoDB shell version: 3.0.2
connecting to: test
Server has startup warnings:
2015-05-09T12:34:19.688-0700 I CONTROL [initandlisten]
2015-05-09T12:34:19.688-0700 I CONTROL [initandlis...
分类:
数据库 时间:
2015-05-10 06:23:42
阅读次数:
2045
1、错误描述
1 queries executed, 0 success, 1 errors, 0 warnings
查询:select stu_id, (SELECT stu_name FROM t_student_info t WHERE t_student_info.stu_id = t.stu_id) stu_name from t_student_info t, t_...
错误代...
分类:
其他好文 时间:
2015-05-07 00:59:36
阅读次数:
236
1、错误描述
1 queries executed, 0 success, 1 errors, 0 warnings
查询:SELECT stu_name, course, score FROM t_student_info s LIMIT 0, 1000
错误代码: 1054
Unknown column 'course' in 'field list'
执行耗时 : 0 sec
传...
分类:
其他好文 时间:
2015-05-07 00:58:09
阅读次数:
248
1、错误描述
1 queries executed, 0 success, 1 errors, 0 warnings
查询:SELECT stu_id, (SELECT stu_name FROM t_student_info t WHERE t.stu_id = t.stu_id) stu_name FROM (SELECT SUM( CASE course WHEN '敮..
错误代码:...
分类:
其他好文 时间:
2015-05-06 22:57:02
阅读次数:
205
network类:
自定义network.h头文件#ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#endif#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#ifndef _NetWork...
分类:
编程语言 时间:
2015-05-02 13:58:59
阅读次数:
153
1.题目描述:点击打开链接
2.解题思路:本题要求当前的密码经过最少的转动后和最终的密码一样。可以利用贪心法解决。考虑第i位,假设当前位a,目标为b,那么有两种转动方式,所需的步数分别为abs(a-b)和10-abs(a,b),取较小者即可。累加后即为最小的步数。
3.代码:#define _CRT_SECURE_NO_WARNINGS
#include
#include<...
分类:
其他好文 时间:
2015-05-01 12:03:16
阅读次数:
118
#!perl
use warnings;
use strict;
use SVG;
use File::Basename qw(basename);
die "perl $0
Note: support 24 colors to sample~
" if @ARGV != 3;
my (@file, @pwtmp, @pw2sp);
my $i = 0;
open PW, $ARGV[...
分类:
其他好文 时间:
2015-04-30 20:13:41
阅读次数:
117
二次扫描文件法实现的电子词典
#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
#include
struct dict
{
char *key;
char *content;
};
int get_dict_size(FILE *pfile)//得到字典文件中词条总数
{
if (pfile == NULL)...
分类:
其他好文 时间:
2015-04-28 20:59:34
阅读次数:
160
1.题目描述:点击打开链接
2.解题思路:本题要求在一个串中寻找一个子串,使得将它截去之后,剩下的部分刚好能拼成CODEFORCES.直接枚举子串的起点和终点,然后判断即可。这道题一开始没有注意Announcement中的提示,只能找一个串,最终迟迟找不到错因==,太可惜了。。
3.代码:
#define _CRT_SECURE_NO_WARNINGS
#include
#include
...
分类:
其他好文 时间:
2015-04-27 15:22:51
阅读次数:
118