多玩几遍直到一命速通包能背过,就是有些低效而已(指背47个单词1h+)
就当个乐子看吧
使用方法:
- 将 len 改为背的单词数量
- 将汉语释义放在 in 数组中。
- 将英语单词放在 ans 数组中,如果你想通过空格对齐,千万不要将空格加在字符串里,否则你背的时候也要打空格。
- 运行程序,程序会在汉语库中随机发放,如果你回答出与输入的英语单词一模一样的单词,就不会在本次运行中再次提问,反之,程序会要求你再重复2遍,盲打一遍以加深记忆,重复或盲打过程中再次出错会使得重新计数
- 如果你真的想拿这个B东西背单词的话,最好不要通过复制来跳过惩罚
#include<bits/stdc++.h>
using namespace std;
const int len=48;//要背的单词数+1
int vis[len];
string in[len]={ "新年(首字母大写,两个) ","庆典 ","张贴 ","装饰品 ","装饰 ","次日 ","传统 ","传统的 ","成年人 ","长大 ","信封 ","游行 ","表演者 ","有趣的 ","万圣节 ","乔装打扮","不给糖就捣蛋 ","血 ","敲门 ","脱下 ","摘掉面具 ","立即 ","停下做 ","停下去去做另一件事","打扫 ","开始从事,学习,接受","wear-- ","fight-- ","带出去 ","吸收,接纳","接管 ","去开门 ","公共的","分发 ","放弃 ","捐赠,泄漏","投降,让步","散发光/热/气体","关于 ","准备 ","包装","购买 ","佣人 ","服务 ","休假 ","处理 ","垃圾桶 "};
string ans[len]={"Spring festival/Chinese New Year","celebration","put up","decoration","decorate","the next day","tradition","traditional","grown-up","grow-up","envelopes","parade","performers","fascinating","Halloween","dress up","trick-or-treating","blood","knock at the door","tack off","tack of the mask","immediately","stop doing","stop to do" ,"clean up","tack up" ,"wear-wore-worn","fight-fought-fought","tack out","tack in" ,"tack over","answer the door","public","give out","give up","give away" ,"give in" ,"give off" ,"as to","prepare","pack","purchase","servant","serve","get time off","deal with","rubbish bin"};
int main(){memset(vis,0,sizeof(vis));srand(time(0));while(1){int x=rand()%len,flag=0,one_time=1;string t;if(vis[x]){continue;}cout<<in[x]<<endl;aaa:getline(cin,t);if(t==ans[x]){if(flag){cout<<"Again"<<endl;flag--;goto aaa;}cout<<"OK"<<endl;if(one_time){vis[x]=1;}}else{cout<<ans[x]<<endl;flag=2;one_time=0;goto aaa;}}
}