![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 57
东东旭huster
这个作者很懒,什么都没留下…
展开
-
C++ 文件夹复制(Linux)
1、需要了解的关键函数和结构struct stat所在文件sys/stat.h,通过这个结构,我们可以获取到文件的详细信息,下面是它的参数说明struct stat{dev_t st_dev; //device 文件的设备编号ino_t st_ino; //inode 文件的i-nodemode_t st_mode; //protection 文件的类型和存取的权限nlink_t st_nlink; //number of hard links 连到该文件的硬连接数目, 刚建立的文件值为1原创 2021-12-27 21:06:15 · 1576 阅读 · 3 评论 -
error: ‘string’ does not name a type; did you mean ‘stdin’
今天写C++ 的时候遇到了这个错误error: ‘string’ does not name a type; did you mean ‘stdin’代码如下#ifndef EMP_H#define EMP_H#include <string>#include <time.h>class Person{public: string name; int age; time_t birthday; Person(string na,int ag,time_t原创 2021-11-29 14:20:02 · 9623 阅读 · 1 评论