简单最小生成树,继续我的kruskal#include#include#include#includeusing namespace std;const int
MAX=1000000;struct node{ int left,right,cost;}road[MAX];bool cmp(n...
分类:
其他好文 时间:
2014-05-01 09:28:42
阅读次数:
333
判断valid,没有更好的方法,只能brute force。 1 class Solution { 2
public: 3 bool isValidSudoku(vector > &board) { 4 5 int n; 6 for (int...
分类:
其他好文 时间:
2014-05-01 08:54:28
阅读次数:
332
1、将hdp002的数据库放到hdp004后,发现yii出现找不到表messages的迹象。用hdp002远程登录hdp004后发现,原来是hdp004没有授权给hdp002,用下面的sql语句即可:在安装mysql的机器上运行:
1、d:\mysql\bin\>mysql -h localho.....
分类:
数据库 时间:
2014-05-01 08:45:25
阅读次数:
473
1、首先停止正在运行的MySQL进程>net stop
mysql如未加载为服务,可直接在进程管理器或者服务中进行关闭。2、以安全模式启动MySQL进入mysql目录在命令行下运行>d:>cd
xampp/mysql/bin>mysqld.exe --skip-grant-tables3、完成以后就...
分类:
数据库 时间:
2014-05-01 08:33:41
阅读次数:
393
描述The SELECT statement is used to select data from
a database.The result is stored in a result table, called the
result-set.大意:select用来从数据库中挑选数据有以下两种形...
分类:
数据库 时间:
2014-05-01 06:14:32
阅读次数:
467
来自:#include "DDraw.h"class CDDraw{public:void
CleanUp();void DrawDIB(BITMAPINFOHEADER* pBI,char* pData,RECT*rt);BOOL Init(HWND
hWnd,int nWidth,int nHe...
分类:
其他好文 时间:
2014-05-01 05:25:10
阅读次数:
407
先看一下效果图 1 BOOL Save2File() 2 { 3 BOOL
bOpenFileDialog = FALSE; ---------------------------------- ① 4 BOOL bVistaStyle
= FALSE; ...
分类:
其他好文 时间:
2014-05-01 04:57:28
阅读次数:
266
类--类的定义和声明【下】三、关于类定义的更多内容【接上】//P374 习题12.8
class Sales_item
{
public:
double avg_price() const;
bool same_isbn(const Sales_item &rhs) const
{
return rhs.isbn == isbn;
}
Sa...
分类:
编程语言 时间:
2014-04-29 13:28:21
阅读次数:
324
进程的创建:可以使用CreateProcess 函数
来源:MSDN
BOOL CreateProcess
(
LPCTSTRlpApplicationName,
LPTSTRlpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes。
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bIn...
分类:
其他好文 时间:
2014-04-29 13:27:21
阅读次数:
340
新浪sae的官方说明文档:http://apidoc.sinaapp.com/sae/SaeMysql.html
Class SaeMysql 具体实现:http://apidoc.sinaapp.com/__filesource/fsource_sae__saemysql.class.php.html
新浪官方文档已经给出了简单的示例:
<?php
$mysql = new Sae...
分类:
数据库 时间:
2014-04-29 13:14:20
阅读次数:
407