首页天道酬勤小键盘数字盲打一分钟多少字,小明按照一定的规律写数:+1,+3,-5

小键盘数字盲打一分钟多少字,小明按照一定的规律写数:+1,+3,-5

admin 04-30 21:16 193次浏览

输入示例1: Jilin [ I lofe {-v-} ] universiti=y输出示例1: i love jilin university输入示例2: abcd[c-de输出示例2: cdecd输入happy=birthday输出示例33: happbirthday输入示例4:EFG[BBB}=}}}}{{a输出示例4: abbbe构想3360这也是一个模拟问题,第一次看到vector容器毕竟,实现两端的队列还是很困难的。

参考代码: # include bits/stdc.husingnamespacestd; classinputsystem { private : vectorcharchain; //字符串链表,数组中是否为模拟bool isInsert的//插入状态int index; public :输入系统((is insert=false; 索引=0; } void moveToHome () { index=0; } void moveToEnd () { index=chain.size ); } void moveLeft () if ) index-1=0) ) { index--; } } void moveRight () if ) { index1=chain.size ) ) index; } } void changeInsertstate () { isInsert=! is插入; } void backspace () if(chain.size ) )0) chain.erase (chain.begin ) ) index - 1 ); 索引- -; }voidinput(charch ) if ) index==chain.size )-1 ) chain.push_back ); }elseif(isinsert ) { chain[index]=ch; }else{chain.insert(chain.Begin ) ) index,ch ); (}索引; } string toString (() { string res; for (常数通道:通道) RES.push_back ) ch; 返回RES; } void操作器(const charch ) if ) ch=='['] ) { moveToHome; }elseif(ch==' ' ' ) ) { moveToEnd; }elseif(ch=='{'}{moveleft ); }elseif(ch=='} ' ) { moveRight ); }elseif(ch=='-' ) { changeInsertstate ); }elseif(ch=='=' ) { backspace ); (else )输入)通道; }; }; int main () {字符串线; 获取线(CIN,line ); 输入系统in; 常数通道:线路(for )英寸; coutin.toString () endl; 返回0; }

记住看小电影前一定要检查网址是不是 HTTPS 的,不然… 小明游戏,小明是什么