- 博客(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关注的人