05 2019 档案
摘要:删除文件夹:del /F /S /Q C:\xxx 生成列表 dir /b /s \\xx\\xxx\*.jpg >list.txt
阅读全文
摘要:打印输出且保存日志:在命令行末尾加2>&1 | tee xx.log 查看内存:1.free -m(-h) 2.更加细节的:htop 以排序方式查看当前文件夹下各子文件夹大小:du -sh *| sort -n 查看详细进程:ps aux 查看当前环境:export 查看当前PATH:echo &P
阅读全文
摘要:https://www.w3cschool.cn/docker/docker-run-command.html 运行容器 https://www.runoob.com/docker/docker-image-usage.html 创建镜像
阅读全文
摘要:第一种:使用string.h中的strrev函数 #include <iostream>#include <cstring>using namespace std; int main(){ char s[]="hello"; strrev(s); cout<<s<<endl; return 0;}第
阅读全文
摘要:int本身也要用一串字符表示,前后没有双引号,告诉编译器把它当作一个数解释。缺省情况下,是当成10进制(dec)来解释,如果想用8进制,16进制,怎么办?加上前缀,告诉编译器按照不同进制去解释。8进制(oct) 前缀加0,16进制(hex) 前缀加0x或者0X。 string前后加上双引号,告诉编译
阅读全文