自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 lua 中string字符串的使用(string.len, string.char)

table.keys返回指定表格中的所有键。格式:keys = table.keys(表格对象)用法示例:local t = {a = 1, b = 2, c = 3}local keys = table.keys(t)-- keys = {"a", "b", "c"}~~table.values返回指定表格中

2014-09-29 15:50:10 5182

原创 lua中如何截取字符串(比如截取文件路径字符串中的文件名)

local path = "c:/home/test/1.txt"local name = string.match(path, ")

2014-09-24 19:50:13 5272

原创 【c++文本文件操作之查找文件夹】mac系统xcode编译环境

#include #include#include #include using namespace std;bool isDir(const char* path);void myFind(const string& filename, const string& tofind);void findInDir(const char *path, const string& tof

2014-09-02 11:38:38 3063

原创 【c++文本文件操作之查找且替换】mac系统xcode编译环境

#include #include#include #include using namespace std;void myreplace(const string& filename,const string& tofind,const string& toreplace);bool isDir(const char* path);void replaceInFiles(cons

2014-09-01 17:40:42 891

原创 【c++文本文件操作之替换】mac系统xcode编译环境

#include #includeusing namespace std;void myreplace(const string& filename,const string& tofind,const string& toreplace);int main(){ myreplace("/Users/xuconglong/Desktop/text/1.txt", "5", "

2014-09-01 17:17:56 816

原创 【c++文本文件操作之查找】mac系统xcode编译环境

#include #includeusing namespace std;void myFind(const string& filename, const string& tofind);int main(){ myFind("/Users/xuconglong/Desktop/text/1.txt", "5"); return 0;}void myFind(

2014-09-01 17:11:01 1038

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除