mirror of
https://github.com/TheWhiteDog9487/lag2cn.git
synced 2026-08-11 23:01:29 +08:00
更新README说明和CPP源文件,缺少一个空格我不能接受
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
# 一键切换Ubuntu系统到简体中文
|
# 一键切换Ubuntu系统到简体中文
|
||||||
|
# **注意!程序运行完之后会自动重启目标电脑/服务器,请确保没有未保存的工作!否则后果自负!**
|
||||||
|
## 这个程序有且仅在Ubuntu系统上测试过,18.04及以上应该都不会有问题,非Debian系列应该都用不了
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
## 两个版本
|
## 两个版本
|
||||||
1.C++
|
1.C++
|
||||||
2.纯Shell
|
2.纯Shell
|
||||||
@@ -7,7 +12,6 @@
|
|||||||
不信你可以去看源代码,C++版本我只是用了system函数执行shell语句,效果不能说天差地别吧,至少也能说是一模一样
|
不信你可以去看源代码,C++版本我只是用了system函数执行shell语句,效果不能说天差地别吧,至少也能说是一模一样
|
||||||
***
|
***
|
||||||
## 使用方法
|
## 使用方法
|
||||||
# **注意!程序运行完之后会自动重启目标电脑/服务器,请确保没有未保存的工作!否则后果自负!**
|
|
||||||
确保已经安装wget或者有其他方法可以传输文件
|
确保已经安装wget或者有其他方法可以传输文件
|
||||||
```shell
|
```shell
|
||||||
apt update && apt install -y wget
|
apt update && apt install -y wget
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#include<cstdlib>
|
#include <cstdlib>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
int main(){
|
int main(){
|
||||||
system("apt install -y language-pack-zh-hans");
|
system("apt install -y language-pack-zh-hans");
|
||||||
|
|||||||
Reference in New Issue
Block a user