摘要:
1. 授权同步#ssh-keygen -t rsa -C "yourEmail@xxx.com"按提示输入路径 /root/.ssh/id_rsa ,再连续输入2次 Enter 即可.#cd /root/.ssh将 id_rsa.pub 内容拷贝到要授权的账号的 Setting 的SSH里2. Gi... 阅读全文
随笔档案-2015年09月
C/C++ 指针数组、二维数组
2015-09-09 18:40 by sylar_liang, 478 阅读, 收藏,
摘要:
一、 二维数组1> 初始化int a[3][3] = { {1,0,0}, {0,1,0}, {0,0,1} }; // 里面的括号是 {} , 而不是()2> 将二维数组当做一维数组处理// void Func(int array[3][10]) 相当于// void Func(int array... 阅读全文
MySQL 基本操作
2015-09-08 18:39 by sylar_liang, 159 阅读, 收藏,
摘要:
1. show databases; // 显示数据库2. use db_passport; // 使用db_passport数据库3. 创建表create table tb_access( aid int unsigned not null primary key, status tinyint ... 阅读全文
C/C++ 编写一个通用的Makefile 来编译.c .cpp 或混编
2015-09-08 18:03 by sylar_liang, 2234 阅读, 收藏,
摘要:
1.虽然能编译出程序,但是会提示错误。目前暂未解决make: sinclude: Command not foundmake: *** [test] Error 1272. 后续主要要修改的部分:1>PROGRAM := hello # 设置运行程序名2> SRCDIRS := . # 源程序位于当... 阅读全文
C/C++ 定义接口文件格式
2015-09-08 17:03 by sylar_liang, 619 阅读, 收藏,
摘要:
#ifndef _XXX_H_#define _XXX_H_#ifdef __cplusplusextern "C" {#endif// Interfacevoid PrintHelloWorld();#ifdef __cplusplus}#endif#endif // _XXX_H_ 阅读全文
string.h c源码实现
2015-09-03 17:00 by sylar_liang, 490 阅读, 收藏,
摘要:
int isspace( char c ){ char comp[] = { ' ', '\t', '\r', '\n', '\v', '\f' }; const int len = 6; for ( int i=0; i= 'A' && c = s ); return NULL;}// 在字符... 阅读全文
MySql存储过程例子1
2015-09-03 16:58 by sylar_liang, 265 阅读, 收藏,
摘要:
1. 编写存储过程delimiter //drop procedure if exists p_PreLogin//create procedure p_PreLogin( IN in_username varchar(32), IN in_password varchar(32),... 阅读全文
浙公网安备 33010602011771号