#include#include#includeint right=0;int wrong=0;void add(){int a,b,c;a=rand()%100;b=rand()%100;printf("请回答:\n\t\t %d + %d = ",a,b);scanf("%d",c);if(a+...
分类:
其他好文 时间:
2015-04-29 23:08:23
阅读次数:
154
Something’s Wrong!Indications that something’s not rightmessage: A generic notification/diagnostic message produced by the message function;execution ...
分类:
其他好文 时间:
2015-04-23 21:29:07
阅读次数:
122
1、验证E-mail
用filer_var 比用正则匹配更加好
if (filter_var('test+email@ansoncheung', FILTER_VALIDATE_EMAIL)) {
echo "Your email is ok.";
} else {
echo "Wrong email address format.";
}
2、验证用户名(验证用户名...
分类:
Web程序 时间:
2015-04-20 09:38:00
阅读次数:
146
Distinguish Business Exceptions from TechnicalDan Bergh JohnssonTHERE ARE BASiCALLY TWO REASONS that things go wrong at runtime: technical problems that prevent us from using the application and busine...
分类:
其他好文 时间:
2015-04-19 13:14:32
阅读次数:
109
Keyboard Shortcuts - Windows/LinuxWarningThis topic is a draft and may contain wrong information.EditingKeypressCommandCtrl + XCut lineCtrl + ?Insert ...
分类:
其他好文 时间:
2015-04-13 18:34:12
阅读次数:
158
1. Inconsist length.char a3[2];char *a = "Itis "strcpy(a3, a); It is wrong. a3 will be correct, but a is missing. memcpy(a3, a, sizeof(char)* 2); It w...
分类:
其他好文 时间:
2015-04-12 13:13:36
阅读次数:
220
Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugAidl'.的问题解答完整的问题提示Gradle: FAILURE...
分类:
移动开发 时间:
2015-04-11 00:00:22
阅读次数:
445
问题描述* What went wrong:Execution failed for task ':app:processDebugManifest'.> Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than...
分类:
移动开发 时间:
2015-04-09 13:39:21
阅读次数:
1062
第一次刷图论,对存储什么的还不熟悉,这题用邻接矩阵太大,邻接表不知道怎么弄,还好vector来存可以节省很多空间。然后深搜,用一个p数组存数每一步的父结点,visit存储该结点是否访问。不过最后我vector没有清空,wrong answer了。#include #include #include ...
分类:
其他好文 时间:
2015-04-06 10:05:36
阅读次数:
127
How Many Answers Are Wrong
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3145 Accepted Submission(s): 1202Problem Description
TT and FF...
分类:
其他好文 时间:
2015-04-05 23:34:52
阅读次数:
216