在 Web.Config 中配置 Access 数据库驱动和数据库文件名称。 请看代码 在数据库访问层,如 OleDBHelper.cs 中获得 Access 数据库链接字符串。 /**//// /// 从Web.Config取得数据库联接字符串 /// //从配...
分类:
数据库 时间:
2014-07-01 20:19:49
阅读次数:
315
CentOS 65中安装vmware tools时出现如下错误,centos vmware tools install failure ,no default label for /tmp/vmware-block-restore......经过google,发现此篇文章 ,需要预先安装必备组件,g...
分类:
其他好文 时间:
2014-07-01 18:31:54
阅读次数:
230
Block 、数组高级block本质上就是匿名函数(没有名称的函数)block语法和函数指针很相似回顾函数函数:C语?中,实现某一类功能的代码段。完整的函数包含两部分:函数声明、函数定义函数声明,即函数原型。例如:int sum(int x,int y);具有两个整型参 数,一个整型返回值的函数。函...
分类:
移动开发 时间:
2014-07-01 18:04:45
阅读次数:
243
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the in...
分类:
其他好文 时间:
2014-07-01 17:00:40
阅读次数:
321
同 时安装多个操作系统的方法有很多,例如Linux Grub引导、WindowsNT OS Loader引导、System Commander引导、Partition Magic改变激活分区等,但总是比较麻烦而且难度较大,而且每个系统所占据的硬盘空间也比较多。利用VMware虚拟机(Virtual)...
分类:
其他好文 时间:
2014-07-01 16:15:17
阅读次数:
208
数据库修复工具 - 仅限 *.mdb 格式的Access 数据库引言:Access数据库操作有一严重Bug,当数据库文件内容添加?时,其文件容量随之添加?,但当删除数据库内容时,其数据库容量不会对应降低e.g 当xfile文件里的某张表xxtable须要删除时,运行sql语句 delete *...
分类:
数据库 时间:
2014-07-01 13:20:03
阅读次数:
260
nginx 配置虚拟目录并且url 重写
server {
#侦听80端口
listen 8090;
#定义使用www.xx.com访问
server_name 127.0.0.1;
#设定本虚拟主机的访问日志
access_log /var/log/nginx/access.log;
...
分类:
Web程序 时间:
2014-07-01 08:47:37
阅读次数:
354
题目:
链接:
题意:
思路:
代码:
#include
#include
#include
using namespace std;
const int N = 30030;
int root[N];
int sum[N],rank[N];//sum[i]表示i下面的积木个数
int q;
int findset(int x)
{
if(x == r...
分类:
其他好文 时间:
2014-07-01 08:12:55
阅读次数:
178
#include
#include
int main( void )
{
char sFileName[128];
int iRet = 0;
memset(sFileName, 0, sizeof(sFileName));
sprintf(sFileName, "test.txt");
printf("R_OK[%d...
分类:
数据库 时间:
2014-07-01 07:41:30
阅读次数:
302
mysql> grant all on *.* to 'root'@'192.168.1.1' identified by 'password';
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
。
确认方式(查看是否有grant all 没...
分类:
数据库 时间:
2014-07-01 07:08:47
阅读次数:
461