![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LINUX
愿做林中鸟
这个作者很懒,什么都没留下…
展开
-
Makefile编写
makefile编写原创 2023-01-16 20:04:50 · 143 阅读 · 0 评论 -
Linux C/C++实现随机数
#include <stdlib.h>#include <time.h>#include <stdio.h>int main(){ //随机种子 srand((unsigned int)time(NULL)); for(int i = 0;i < 10 ;i ++) { //printf("%d ",rand()%101);//生成0~100之间 printf("%d ",rand()%101 - 50);//生成-50~50之间 }原创 2021-10-24 11:18:49 · 3767 阅读 · 0 评论 -
虚拟机映射、虚拟机与物理机共享文件夹
1.安装Samba软件包 sudo apt-get install samba2.更改Samba配置文件//建议备份sudo vi /etc/samba/smb.conf3.在smb.conf末尾添加[share] comment = VMware Ubuntu Share path = / writable = yes browseable = yes create mask = 0777目录可以自定义4.创建共享用户sudo smbpasswd -a 用户名(原创 2021-10-24 06:00:00 · 594 阅读 · 0 评论