转载自:http://www.reddit.com/r/Database/comments/27u6dy/how_do_you_build_a_database/ciggal8Its a great question, and deserves a long answer.Most database...
分类:
数据库 时间:
2014-08-12 21:24:44
阅读次数:
315
把所有合法的进制打出来会发现合法的进制都是在
n/3 n/4 n/5的边上
然后暴力边上的进制数。。
#include
#include
typedef long long ll;
bool ok(ll x, ll y) {
ll v;
while (x > 0) {
v = x % y;
if (v != 3 && v != ...
分类:
其他好文 时间:
2014-08-12 19:11:45
阅读次数:
164
因为瞬间伤害的塔一定是放在终点端的,所以枚举这种塔的个数
然后就能把n^3变成n^2了
#include
#include
#include
typedef long long ll;
const int N = 1500 + 2;
ll d[N][N]; // j = 3;
int Tt = 0, n, x, y, z, t;
inline void up(ll& a, ll...
分类:
其他好文 时间:
2014-08-12 19:08:14
阅读次数:
279
如Beep的API声明为Public Declare Function Beep Lib “kernel32″ Alias “Beep” (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long则使用方法如下'创建对象Set Wrap = Cr...
Option ExplicitPrivate Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)...
分类:
其他好文 时间:
2014-08-12 13:29:14
阅读次数:
276
static final SimpleDateFormat DATETIME_SEC_STR = new SimpleDateFormat("yyyyMMddHHmmss");1.Date转LongLong currStartTime = Long.valueOf(DATETIME_SEC_STR....
分类:
其他好文 时间:
2014-08-12 13:23:44
阅读次数:
184
Modern browsers (IE8, FF3, Chrome etc.) have native JSON support built in (Same API as with JSON2).So as long you're not dealing with IE6/7 you can do...
分类:
Web程序 时间:
2014-08-12 13:08:24
阅读次数:
217
为了完成一个简单的注册表删除程序,由于我本身是win7 64位的OS,写了以下代码来递归删除注册表键值,程序代码如下:
#include
#include
#define KEY_WOW64_64KEY 256
long DeleteSubKeyTree(HKEY hKey, LPCTSTR lpSubKey)
{
LONG lResult;
HKEY hSubKey;
DWO...
Foword from: http://www.dreamincode.net/forums/topic/347938-a-new-webcam-api-tutorial-in-c-for-windows/page__st__0%26
Well,
A long time ago I introduced a Webcam Tutorial.
It was for Video...
分类:
编程语言 时间:
2014-08-11 21:26:23
阅读次数:
658
机房收费系统中有很多窗体用到导出到Excel,说一下vb与Excel的交互,如何才能将MSHFlexgrid中的内容导出到Excel。
首先在VB中添加引用Microsoft Excel 14.0 Object Library。然后找到相应按钮,在过程中添加如下代码:
Private Sub cmdExport_Click()
Dim i As Long, j As Lo...
分类:
其他好文 时间:
2014-08-11 18:05:12
阅读次数:
172