
Lv.1
RendexORE,一个可怜的Minecraft-Java腐竹
签名:我的Sinox OS PT
在 C++指令控制台程序 中回复
Lunix更新版本:
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main()
{
string command,value;
bool cls;
while(true)
{
if(cls==false)
{
cout<<">>>";
}
cin>>command>>value;
if(cls==true)
{
system("clear");
}
if(command=="out")
{
cout<<value<<endl;
}
if(command=="@out")
{
if(value=="off")
{
cls=true;
}
else
{
if(value=="on")
{
cls=false;
}
else
{
cout<<"Error:Not exist value"<<endl;
}
}
}
if(command=="clean"&&value=="\\")
{
system("clear");
}
if(command=="sys")
{
system(value.c_str());
}
if(command=="apt-install")
{
system(("sudo apt install "+value).c_str());
}
if(command=="apt-remove")
{
system(("sudo apt remove "+value).c_str());
}
if(command=="downloads")
{
system(("wget "+value).c_str());
}
if(command=="rsl"&&value=="\\")
{
cout<<"rsl v1.1.2\nCopyright Rinson Tec 2024\n";
}
}
}
Windows更新版本:
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main()
{
string command,value;
bool cls;
while(true)
{
if(cls==false)
{
cout<<">>>";
}
cin>>command>>value;
if(cls==true)
{
system("cls");
}
if(command=="out")
{
cout<<value<<endl;
}
if(command=="@out")
{
if(value=="off")
{
cls=true;
}
else
{
if(value=="on")
{
cls=false;
}
else
{
cout<<"Error:Not exist value"<<endl;
}
}
}
if(command=="clean"&&value=="\\")
{
system("cls");
}
if(command=="sys")
{
system(value.c_str());
}
if(command=="downloads")
{
system(("wget "+value).c_str());
}
if(command=="rsl"&&value=="\\")
{
cout<<"rsl v1.1.2\nCopyright Rinson Tec 2024\n";
}
}
}
2024-07-06T11:57:02 点赞:0
在 C++指令控制台 中回复
输入out yyy则输出yyy,输入@out on/off可开/关命令输出,输入downloads yyy可下载yyy,输入sys可执行系统控制台命令,输入clean清屏
2024-07-06T12:05:29 点赞:0
在 C++指令控制台程序 中回复
Lunix最新版本:
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main()
{
string command,value;
while(true)
{
cout<<">>>";
cin>>command>>value;
if(command=="out")
{
cout<<value<<endl;
}
if(command=="clean"&&value=="-")
{
system("clear");
}
if(command=="sys")
{
system(value.c_str());
}
if(command=="apt-install")
{
system(("sudo apt install "+value).c_str());
}
if(command=="apt-remove")
{
system(("sudo apt remove "+value).c_str());
}
if(command=="download")
{
system(("wget "+value).c_str());
}
if(command=="new-file")
{
system(("touch \""+value+"\"").c_str());
}
if(command=="edit")
{
system(("nano \""+value+"\"").c_str());
}
if(command=="delete")
{
system(("rm \""+value+"\"").c_str());
}
if(command=="new-fold")
{
system(("mkdir \""+value+"\"").c_str());
}
if(command=="kill-task")
{
system(("kill "+value).c_str());
}
if(command=="rsl"&&value=="-")
{
cout<<"rsl v1.1.2\nCopyright Rinson Tec 2024\n";
}
}
}
2024-07-08T22:31:01 点赞:0
在 呜呜,我也想加入某个工作室。 中回复
加入我们吗,24小时内绝对同意!最佳申请时间:早7:00~11:00,其他时间要等第二天早7:00,一并处理所有申请
2024-07-09T10:10:47 点赞:0