1、初始化模块。 mysql启动的时候。初始化模块接管控制权。 初始化模块。读取配置文件。命令行参数。 分配全局内存缓存、初始化全局变量、结构信息、载入访问控制表、执行一些其他的初始化任务。 一旦初始化工作完成后,初始化模块把控制权交给连接管理器。开始接受客户端的连..
分类:
数据库 时间:
2015-07-08 14:55:58
阅读次数:
189
Eclipse启动之三启动器插件空间启动插件名为org.eclipse.equinox.launcher.,入口类org.eclipse.core.launcher.main.它是Eclipse虚拟机启动的最早的插件main整体流程:1.处理命令行参数2.设置虚拟机属性3.处理配置4.获取安装路径5...
分类:
系统相关 时间:
2015-07-07 20:59:15
阅读次数:
178
getopt是linux下解析命令行参数的api。以linux内核代码的一个例子来说明:static void cmdline(int argc, char *argv[]){ int opt; progname = basename(argv[0]); while ((opt = getopt(....
分类:
系统相关 时间:
2015-07-07 18:44:10
阅读次数:
184
这个题。。是要把字符串转为整数。注意是整数,我看到整数的时候松了一口气,没有小数点的判断应该更好做。而且基本的转化函数我想每个程序员都无法忘记:res=res*10+(str[i]-'0');其实就是这么一句话的事情,然而这个题的通过率只有13%,在200多个题目中排名第五。本想不看提示自己写了一些...
分类:
其他好文 时间:
2015-07-07 12:37:50
阅读次数:
113
mysql二进制日志:命令行参数:--log-bin[=file_name]文件名--log-bin-index[=file] 文件索引--max_binlog_size 单个文件大小--binlog-do-db=db_name 对那些db记录。只对指定数据库进行记录--binlog-ignore-db=db_name 忽略那些db。只忽略指定数据库,其他数据库记录系统变量:..
分类:
数据库 时间:
2015-07-06 20:02:58
阅读次数:
177
题目:
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible...
分类:
编程语言 时间:
2015-07-06 14:19:22
阅读次数:
145
//编写函数实现库函数atoi,把字符串转换成整形
#include
#include
#include
#include
long long calculate(const char *src, int flag)
{
long long num = 0;
while (*src )
{
if ((*src >= '0') && (*src <= '9'))//判断输?入是否为...
分类:
编程语言 时间:
2015-07-05 12:30:52
阅读次数:
126
#include
using namespace std;
static int sflags = 0;
//atof的函数实现。
bool Isnum(char ch)
{
return (ch - '0') >= 0 || (ch - '0') <= 9;
}
float Getnum(char *s,int flags)
{
float count = 0...
分类:
编程语言 时间:
2015-07-04 16:49:22
阅读次数:
123
// 模拟实现库函数的atoi函数
#include
#include
#include
#include
int my_atoi(char const *p)
{
int ret = 0;
int a = 0;
int flag = 1;
assert(p != NULL);
while (isspace(*p))
{
p++;
}
while (*p)
{
...
分类:
编程语言 时间:
2015-07-04 15:31:00
阅读次数:
170
//编写函数实现库函数atoi,把字符串转换成整形
#include
#include
int my_atoi(const char *src)
{
int flag=1;
int sum=0;
while (*src)
{
if (*src == ' ')
src++;
else if (*src == '+')
{
src++;
flag = 1;
...
分类:
编程语言 时间:
2015-07-04 11:18:03
阅读次数:
156