一、题目:
二、输入输出示例:
三、代码:
#include<iostream>
using namespace std;
#include<string>
int main()
{
string a[7] = {"reset","reset board","board add","board delete",
"reboot backplane","backplane abort","he he",};
string s;
while(getline(cin,s)){
//判断输入是一个字串还是两个字串
int flag= 0;
for(int i=0;i<s.size();i++){
if(s[i] == ' '){
flag = 1;