CentOS命令登录MySQL时,报错ERROR 1045 (28000): Access
denied for user root@localhost (using password: NO)错误解决方法1、停用mysql服务:#
/etc/rc.d/init.d/mysqld stop2、输入命...
分类:
数据库 时间:
2014-05-26 01:58:12
阅读次数:
306
Problem Description
Teacher HU and his 40 students were trapped by the brigands. To show their power, the head of the brigands want to select one people to kill.
Teacher HU and his 40 students wil...
分类:
其他好文 时间:
2014-05-25 18:19:44
阅读次数:
306
我们经常会用到平年和闰年对应的天数,直接对数组静态初始化固然可以,但是手写起来很容易写错,所以用个函数得对应天数。
完整代码:
#include
using namespace std;
int count = 0;
int a[2][12];
void init_arr(int a[2][12])
{
for(int i=0;i<13;i++)
{
if(i==1||i==3||i=...
分类:
其他好文 时间:
2014-05-25 18:16:39
阅读次数:
258
(1)在虚拟机中执行应用程序
(2)程序调用libc里的封装例程 , 封装例程syscall调用,向内核发送系统调用号。具体分析发现。syscall会通过调用__kernel_vsyscall函数发送系统调用号。
(3)__kernel_vsyscall函数执行sysenter快速系统调用,由用户态进入内核态。
(4)sysenter进入内核态时,会先找到执行系统调用的入口函数ia32_sysenter_target。
(5)执行到sysenter_do_call函数处,通过call *sys_call_...
分类:
其他好文 时间:
2014-05-25 13:03:55
阅读次数:
396
Problem Description
Teacher HU and his 40 students were trapped by the brigands. To show their power, the head of the brigands want to select one people to kill.
Teacher HU and his 40 students wil...
分类:
其他好文 时间:
2014-05-25 10:02:35
阅读次数:
309
ST
int dp[maxn][20];
int a[maxn];
void RMQ_init(int n)
{
int i,j,k;
for(i = 1; i <= n; i++)
dp[i][0] = a[i];
k = (int) (log((double)n + 0.2) / log(2.0));
for(j = 1; j <= k; j++)
for(i =...
分类:
其他好文 时间:
2014-05-25 09:45:08
阅读次数:
227
V3 RC4 版本图片
显示一个飞船
将Chapter1中 SpaceCargoShip.png 文件 添加到项目里面。
代码在 init :
CCSprite *spaceCargoShip = [CCSprite spriteWithImageNamed:@"SpaceCargoShip.png"]; [spaceCargoShip set...
分类:
其他好文 时间:
2014-05-25 09:39:59
阅读次数:
195
ADB启不来,报"The connection to adb is down, and a severe error has occured" 检查任务管理器,也没看到adb.exe. 尝试手工启动.
C:\Ndk\adt-bundle-window\sdk\platform-tools>adb kill-server
* server not running *
C:\Ndk\adt-...
分类:
数据库 时间:
2014-05-25 07:32:54
阅读次数:
310
最近遇到一个这样的问题在SUSE9下我通过smbclient下载的文件解压总是失败然而在SUSE10下却发现是正常的情况所以准备升级tar当我去rpmfind.net把tar下载回来后rpm升级安装的时候却提示我要升级glibc好吧当我把glibc下载之后却又提示我升级kernel好吧我觉得我如果要升级这么多东..
分类:
其他好文 时间:
2014-05-25 05:06:38
阅读次数:
280
一、开发环境
Win8.1 64位、VS2013、MySQL5.5.37
64位
MySQL安装目录为:C:\Program Files\MySQL\MySQL Server 5.5
二、配置工程环境
首先创建一个控制台空项目,打开VS2013,文件--> 新建项目 --> 常规 --> 选择“空项目”
因为我们要使用MySQL数据库...
分类:
数据库 时间:
2014-05-25 04:45:09
阅读次数:
442