diff --git a/bx1unit1.in b/bx1unit1.in index 99f2568..9c08463 100644 --- a/bx1unit1.in +++ b/bx1unit1.in @@ -1,40 +1,40 @@ -53 -teenage -adj.十几岁的(指13至19岁);青少年的 -teenager -n.(13至19岁的)青少年 -ballet -n.芭蕾舞 +105 +be fluent in ...|be fluent in...|fluent in...|fluent in ... +...说得流利(一般指语言) +be confused about ...|be confused about...|confused about...|confused about ... +对...感到困惑 +fluently +adv. 流利地 volunteer n.志愿者 -debate -n.辩论;争辩; vt&vi.辩论 +recommend sth to sb|recommend sth. to sb. +向某人(sb.)介绍某物(sth.) prefer vt.较喜欢 prefer to|prefer ... to ...|prefer...to... 喜欢······多于······ -content -n.内容; pl.目录; 主题 -movement -n.动作;运动;活动 -greenhouse -n.温室;暖室 -clean up|clean...up -打扫(或清除)干净 +on sb's recommendation +在某人的(sb's)建议下 +sth is highly recommended +某物(sth.)被高度推荐 +it is strongly recommended that ...|It is strongly recommended that ...|it is strongly recommended that...|It is strongly recommended that... +强烈建议...(主语从句) +clean up|clean ... up|clean...up +打扫(或清除)干净 suitable adj.合适的;适用的 -suitable for|suitable for... +suitable for|suitable for ...|be suitable for|be suitable for ... 对······合适的 actually adv.事实上;的确 challenge -n.挑战;艰巨任务 vt.怀疑;向······挑战 -title -n.(书、诗歌等的)名称;标题;职称;头衔 -topic -n.话题;标题 -freshman -n.(中学)九年级学生;(大学)一年级新生 +n.挑战;艰巨任务 vt.怀疑; +advance +v. 提前;提前 +in advance of sth. +(时间上)在某事(sth.)之前 +great works of literature +伟大的文学作品 confusing adj.难以置信的;不清楚的 confuse @@ -42,13 +42,11 @@ vt.使 confused adj.糊涂的;迷惑的 fluent -adj.(尤其外语)流利的;熟练的 +adj.(尤其外语)流利的;熟练的 graduate vi.&vt.毕业;获得学位; n.毕业生 recommend vt.建议;推荐;介绍 -sign up|sign up(for sth) -报名(参加课程) advanced adj.高级的;高等的;先进的 advance @@ -56,52 +54,158 @@ n.前 literature n.文学;文学作品 extra-curricular -adj. 课外的;课程之外的 +adj.课外的;课程以外的 extra -adj. 额外的;附加的 +adj.额外的 obviously -adv. 显然;明显地 +adv.显然;明显地 quit -vi.&vt. 停止;戒掉;离开 +vi.&vt. 停止;戒掉;离开(工作职位、学校等) responsible -adj. 负责的;有责任的 +adj.负责的;有责任的 responsibility -n. 责任;义务 -be responsible for -对...负责 +n.责任;义务 +be responsible for|responsible for|be responsible for ...|responsible for ... +对......负责 +preferred +prefer(过去式) +preferring +prefer(进行时) +preference +n.偏爱;喜爱 +prefer for|prefer for ...|prefer for... +对···有偏爱之情 +suitable for|suitable for sb.|be suitable for|be suitable for sb. +适用于某人 +unsuitable +adj.不适合的 +suit +v.适合 +take up a challenge +接受一个挑战 +challenging +adj.有挑战的 +confuse A with B +将A和B混淆 +confusion +n.困惑;混淆;混乱局面 +graduate from ...|graduate from...|graduate from +从···毕业 +after graduation +毕业以后 +recommend doing sth.|recommend doing +建议做某事 +see|因为recommend (that) (should) do 该处省略了should +I recommend he__(see) a lawyer.横线处填上正确形式 +sign up for|register for|signed up for ... +报名 +literary +adj.文学的 +be involved in|involved in +(ex)卷入;参加 +obvious +adj.明显的;显然的 +quit doing sth.|stop doing sth. +停止做(sth.) +fluency +n.流利;流畅 +solve +v.解决 solution -n. 解决方法;答案 -schedule -n.工作计划;日程安排;vt. 安排;预订 +n.解决方法 +a solution to ...|a solution to...|a solution to +一个······的解决方法 +on schedule +准时 +ahead of schedule +提前于计划 +behind of schedule +落后于计划 +be scheduled for...|be scheduled for|be scheduled for ... +为······安排时间 +edit +v.编辑 +edition +n.版本 editor -n. 主编;编辑;编者 -plate -n. 盘子;碟子 -adventure -n. 冒险;奇遇 -youth -n. 青年时期;青春 +n.编辑;主编;编者 +in one's youth|in sb's youth +在(sb's)某人年轻时期 +the youth|youths +年轻人(ex)youth +(ex)enchante +着迷 +quiz +(ex)solve测试 +attemp +(ex)尝试 +a key to ...|a key to|a key to... +(ex)······的关键 +a tight schedule +一个很紧凑的安排(时间表) +unemployment +(ex)失业 survival -n. 生存;幸存;幸存事物 +v.生存;n.生存;残存物 +manage to do +成功做某事 +survivor +n.幸存者 expert -n.专家;行家;adj. 熟练的;内行的;专家的; +n.专家 +a expert at|a expert on|a expert in +某方面的专家 +seek +(ex)寻求;寻找 behaviour -n. 行为;举止 +n.行为 +behave +v.表现 +behave oneself +表现得体 generation -n. 一代(人) +n.一代(人) +a generation ago +上一代(人) +for generation +一连好几代,几代相传 +generate +v.产生;引起 +in spite of +(ex)尽管 +proposal +(ex)n.提议;意见 +good habits formed at youth make all the difference|Good habits formed at youth make all the difference. +年轻时养成的好习惯使一切都不同。 +attract one's attention|attract sb's attention +吸引某人的注意 attract -vt. 吸引;引起....的注意 -be attracted to -喜爱 +v.吸引 +attraction +n.吸引 +a tourist attraction +一个旅游景点 +attractive +adj.有魅力的;好看 +be attractive to|be attractive to...|be attractive to ... +对······喜爱 +be attractive by|be attractive by...|be attractive by ... +被······吸引 focus -vi.&vt.集中(精力,注意力等);使调节焦距;n.中心;重点;焦点 -focus on -集中;特别关注 -addicted -adj. 上瘾的;有瘾的;入迷的 +v.集中 +focus on|focus on...|focus on ... +专注于······ +responsibility for +承担责任 addict -n.对......入迷的人;吸毒成瘾的人 -addicted to -对...很入迷 -adult -n.成年人;adj.成熟的 +n.上瘾的人 +addicted +adj.入迷的;成瘾的 +addiction +n.瘾;入迷 +addiction to|addiction to...|addiction to ... +沉迷于··· +adult|grown-up +成年人 +adults|grown-ups +成年人(复数) \ No newline at end of file diff --git a/writing-master.cpp b/writing-master.cpp index 0f1be5a..977f2fb 100644 --- a/writing-master.cpp +++ b/writing-master.cpp @@ -1,3 +1,4 @@ +//4.5 #pragma GCC optimize("Ofast") #include #include @@ -5,13 +6,112 @@ #include //#define txet cout<<"get here!";Sleep(1000); using namespace std; -const int N=100; -int n,z_choose; +const int N=600; +int n; struct node { string totEh,Eh[N],Ch; int cntEh; } word[N]; +namespace twy +{ +typedef struct Frame +{ + COORD position[2]; + int flag; +}Frame; + +void SetPos(COORD a) +{ + HANDLE out=GetStdHandle(STD_OUTPUT_HANDLE); + SetConsoleCursorPosition(out, a); +} + +void SetPos(int i, int j) +{ + COORD pos={i, j}; + SetPos(pos); +} +/*=============== 画面 ===============*/ + +void drawRow(int x, int y1, int y2, char ch) //把第x行,[y1, y2] 之间的坐标填充为 ch +{ + SetPos(y1,x); + for(int i=0; i<=(y2-y1+1); i++) + printf("%c",ch); +} +void Draw_opt(int size,string s[]) +{ + SetPos(2,6); + cout<<">>"; + for(int i=1; i<=size; i++) + { + SetPos(5,2*i+4); + cout< s) +{ + SetPos(2,6); + cout<<">>"; + for(int i=1; i<=size; i++) + { + SetPos(5,2*i+4); + cout<>"); + } + else if(x=='s'|| x=='S'|| x==80) + { + j++; + if(j==r+1) j=l; + SetPos(2,2*j+m); + printf(">>"); + } + else if(x==13)//谁再用'k',谁死马 + { + Draw(-1); + return j; + } + else + { + SetPos(2,2*j+4); + printf(">>"); + } + return -1; +} +} +using namespace twy; namespace zm { void choose_pattern(char a[]); @@ -61,7 +161,7 @@ void create(char a[]) Thesaurus<<"最后一行要换行(其余详见使用手册)\n"; Thesaurus.close(); system(name); - system("cls"); + getchar(); } void getFiles(string path,string exd,vector&files) { @@ -80,7 +180,7 @@ void getFiles(string path,string exd,vector&files) _findclose(hFile); } } -string GetExePath() //获取当前文件夹路径 +string GetExePath() //获取当前文件夹路径 { char szFilePath[MAX_PATH+1]={0}; GetModuleFileNameA(NULL,szFilePath,MAX_PATH); @@ -90,69 +190,41 @@ void getFiles(string path,string exd,vector&files) } void open(char a[]) { - puts("已有词库:"); string argv=GetExePath(); - vectorfiles; + vector files; //获取该路径下的所有.in .txt文件 // getFiles(argv,"in",files); getFiles(argv,"txt",files); - int size=files.size(); //总共文件数 - for (int i=0; i"< back\n",size+1); Color(7); - printf("输入数字,选择词库:"); - int choose; - cin>>choose; - if (choose==size+1) - { - return Custom(a); - } - if (choose>size+1 || choose<=0) - { - system("cls"); - puts("请输入所给范围的数字!"); - Sleep(888); - system("cls"); - open(a); - return; - } - choose-=1; - //string -> char[] + files.push_back("Back"); + int size=files.size(); //总共文件数 + Draw_opt(size,files); + int choose=1; + while(drawp(1,size,choose,4)==-1); + choose--; + if(choose==size-1) return Custom(a); string tem=files[choose].c_str(); for (int i=0; i删除\n"); - printf("2 ->编辑词库\n"); - Color(8); printf("3 ->back\n"); Color(7); - int choose; - cin>>choose; - if (choose==3) - { - return; - } - if (choose>3 || choose<=0) + Draw(-1); + string opt[10]= { - system("cls"); - puts("请输入所给范围的数字!"); - Sleep(888); - system("cls"); - edit_choose(in); - return; - } + "", + "删除", + "编辑词库", + "Back" + }; + Draw_opt(3,opt); + int choose=1; + while(drawp(1,3,choose,4)==-1); if (choose==1) { system("cls"); printf("删除中...\n"); remove(in); - Sleep(666); printf("删除成功!!!\n"); Sleep(666); return; @@ -162,90 +234,115 @@ void edit_choose(char in[]) system("cls"); printf("进入中...\n"); system(in); - Sleep(666); printf("编辑成功!!!\n"); Sleep(666); return; } -} -void edit(char a[]) -{ - system("cls"); - puts("无法修改系统自带词库"); - puts("仅可修改用户自行添加词库"); - puts("已有词库:"); - string argv=GetExePath(); - vectorfiles; - //获取该路径下的所有.in .txt文件 -// getFiles(argv,"in",files); - getFiles(argv,"txt",files); - int size=files.size(); //总共文件数 - for (int i=0; i"< back\n",size+1); Color(7); - printf("输入需要编辑的词库的编号:"); - int choose; - cin>>choose; - if (choose==size+1) + else if (choose==3) { - return Custom(a); + return; } - if (choose>size+1 || choose<=0) + else { system("cls"); puts("请输入所给范围的数字!"); Sleep(888); system("cls"); - edit(a); + edit_choose(in); return; } +} +void edit(char a[]) +{ + string argv=GetExePath(); + vectorfiles; + //获取该路径下的所有.in .txt文件 +// getFiles(argv,"in",files); + getFiles(argv,"txt",files); + files.push_back("back"); + int size=files.size(); //总共文件数 + Draw(-1); + Draw_opt(size,files); + int choose=1; + while(drawp(1,size,choose,4)==-1); + if (choose==size) return Custom(a); choose--; char tem[100]=""; string_char(files[choose].c_str(),tem); edit_choose(tem); edit(a); } - void Custom(char a[]) { - system("cls"); - printf("1 ->创造新词库\n"); - printf("2 ->打开已有词库,开始练习\n"); - printf("3 ->编辑已有词库\n"); - Color(8); printf("4 ->back\n"); Color(7); - printf("请选择:"); - char choose; - cin>>choose; + Draw(-1); + string opt[10]= + { + "", + "创造新词库", + "打开已有词库", + "编辑已有词库", + "Back" + }; + Draw_opt(4,opt); + int choose=1; + while(drawp(1,4,choose,4)==-1); switch(choose) { - case '1': system("cls"); create(a); z_choose=1; return; - case '2': system("cls"); open(a); z_choose=2; return; - case '3': system("cls"); edit(a); return; - case '4': system("cls"); choose_pattern(a); return; - default: system("cls"); puts("请输入所给范围的数字!"); Sleep(1000); system("cls"); Custom(a); break; + case 1: system("cls"); create(a); return; + case 2: open(a); return; + case 3: system("cls"); edit(a); return; + case 4: system("cls"); choose_pattern(a); return; } } +void Own_Thesaurus(char a[]) +{ + string argv=GetExePath(); + vector files; + //获取该路径下的所有.in .txt文件 + getFiles(argv,"in",files); +// getFiles(argv,"txt",files); + files.push_back("Back"); + int size=files.size(); //总共文件数 + Draw_opt(size,files); + int choose=1; + while(drawp(1,size,choose,4)==-1); + choose--; + if(choose==size-1) return choose_pattern(a); + string tem=files[choose].c_str(); + for (int i=0; i开始练习自带词库"); - puts("2 ->自定义词库"); - puts("3 ->使用手册"); - Color(8); puts("4 ->退出"); Color(7); - printf("请选择:"); - char choose; - cin>>choose; + Draw(-1); + string opt[10]= + { + "", + "【官方词库】 ", + "【自定义词库】 ", + "【使用手册】 ", + "【更多】 ", + "【退出】" + }; + Draw_opt(5,opt); + int choose=1; + while(drawp(1,5,choose,4)==-1); switch(choose) { - case '1': z_add("bx1unit",a); z_choose=0; system("cls"); return; - case '2': system("cls"); Custom(a); return; - case '3': system("cls"); puts("进入中..."); system("使用手册.pdf"); choose_pattern(a); return; - case '4': exit(0); - default: system("cls"); puts("请输入所给范围的数字!"); Sleep(1000); choose_pattern(a); break; + case 1: Own_Thesaurus(a); system("cls"); return; + case 2: Custom(a); return; + case 3: system("cls"); puts("进入中..."); system("使用手册.pdf"); choose_pattern(a); return; + case 4: system("cls"); morre(); choose_pattern(a); return; + case 5: system("cls"); exit(0); } } } @@ -258,7 +355,6 @@ void add(char temp[],char into[]) } void initialization() //初始化 { - z_choose=0; for (int i=0; i<=n; i++) for (int j=0; j>n; @@ -338,7 +423,7 @@ void Usual(int level,int T,int F) { printf("进度: %d/%d\n",level,n); printf("正确率:%.1lf% (%d/%d)\n",T*100.0/(T+F),T,T+F); - puts("输入'>>'可跳过当前单词,输入'.'结束测试"); + puts("输入'>>'跳过单词,'?'去除单词,'.'结束测试"); } } namespace work @@ -395,7 +480,8 @@ void Selection() pick[r]=0; while(!check()) { - if(init==">>") {cout<>") {cout<