(string.h)这个文件夹主要是定义了几个对字符串和数组进行操作的函数。功能很强大。下面是重要函数:strcpy、strncpystrcpy,strncpy这两个函数是对字符串的复制,很常用。memcpy函数原型:void
* memcpy ( void * destination, const...
分类:
其他好文 时间:
2014-05-03 23:10:14
阅读次数:
310
screen 默认使用 bash shell,一般情况下screen只用于android
build,tmux则是我的日常使用多终端管理工具。# Default Shellshell "/bin/bash"# show status
barhardstatus alwayslastline "%{b...
分类:
系统相关 时间:
2014-05-03 22:14:57
阅读次数:
454
tmux中默认的shell是zsh,zsh在日常中使用可以协助我们高效地使用shell命令。#
设置Shellset-option -g default-shell /bin/zsh# 设置复制模式,空格开始选,Enter结束复制setw -g
mode-keys vi #开启status-bar ...
分类:
系统相关 时间:
2014-05-03 22:06:18
阅读次数:
1323
#!/bin/bash
clear
echo ""
echo "Enter Your First Name:"
read FirstName
echo "Enter Your Last Name:"
read LastName
echo "$FirstName $LastName">trans.dat...
分类:
其他好文 时间:
2014-05-03 22:02:31
阅读次数:
299
九度机试 题目1165:字符串匹配 2008年北京航空航天大学计算机研究生机试真题...
分类:
其他好文 时间:
2014-05-03 21:39:40
阅读次数:
224
第1部分 重新认识C语言C语言中常用的文件操作函数总结及使用方法演示代码 1. C语言中常用的文件操作函数总结(1) fopen作用:打开文件。表头文件:#include 定义函数:FILE *fopen(const char *path, const char *mode);函数说明:参数path字符串包含欲打开的文件路径及文件名,参数mode字符串则代表着流形态。mode有下列几种形态字符串:...
分类:
其他好文 时间:
2014-05-03 21:38:17
阅读次数:
279
一直都知道自己很死板,刚刚再一次验证了。。下载下来android开发必备的工具之后,就按部就班的一步步的来了,没想过这些工具有没有其他用处,更有甚者,在刚开始接触android的时候,竟然不知道自己写的app可以在真机上运行。。不得不承认,我不是一个好的学习者。学习,应该处处充满好奇心!
言归正转,进入android shell很简单,只需要你进入adb的存放目录,执行./adb shell就可...
分类:
移动开发 时间:
2014-05-03 21:29:31
阅读次数:
394
D. Match & Catch
可以用各种方法做,字符串hash,后缀数组,dp,拓展kmp,字典树。。。
字符串hash(模板)
http://blog.csdn.net/gdujian0119/article/details/6777239
BKDR Hash Function :
// BKDR Hash Function
unsigned int BKDRHash(c...
分类:
其他好文 时间:
2014-05-03 21:20:47
阅读次数:
282
#!/bin/bash
clear
declare FirstName Greeting
Greeting="Hello ,"
echo ""
echo "Enter Your First Name:"
read FirstName
echo "$ Greeting $FirstName"
首先 vim Print 回车
然后 i 进入插入状态
编辑以上代码,Esc 键...
分类:
其他好文 时间:
2014-05-03 21:05:20
阅读次数:
283
C# 中 PadLeft和PadRight 的用法
在 C# 中可以对字符串使用 PadLeft 和 PadRight 进行轻松地补位。
PadLeft(int totalWidth, char paddingChar) //在字符串左边用 paddingChar 补足 totalWidth 长度
PadRight(int totalWidth, char paddingChar...
分类:
其他好文 时间:
2014-05-03 20:50:32
阅读次数:
513