摘要: 初版String类库的设计 #include <cstring> #include <iostream> using namespace std; class String{ public: String(const char* p){ sz = strlen(p); data = new char 阅读全文
posted @ 2019-11-10 11:26 耶 阅读(168) 评论(0) 推荐(0)
摘要: 如下:一个检查文件系统目录的内容的例子,使用C语言、C库。 #include <stdio.h> #include <dirent.h> int main(int argc, char const *argv[]) { DIR* dp = opendir("."); struct dirent* d 阅读全文
posted @ 2019-11-10 10:46 耶 阅读(278) 评论(0) 推荐(0)