《Animal Farm》笔记

动物
boar 种猪
sow n.母猪;v.播种
mare 母马 mane 鬃毛
pigeon 家鸽;dove 和平鸽
raven / crow 乌鸦
cockerel 小公鸡
poultry 家禽
flea 跳蚤

短语
a brood of ducklings 一窝小鸭子 sibling 兄弟姐妹
a flock of geese
a pack of idle thieving human beings
a lump of sugar

书中高频句式
1. And remember, comrades, your resolution must never falter (n&v. 踌躇). No argument must lead you astray (adv. 迷失).

2. It is noticed that …

3. No animals must ever tyrannize over his own kind; no animals must ever kill any other animal.

4. lest … should be                    以免 …(should 表虚拟)

书中同义表达
1. 在表示排队、列队时用到的动词:file、troop

2. 在表示解散时用到的动词:disperse、dismiss【常用义:解雇】

3. 在表示斥责时用到的动词:reproach、denounce
The others reproached her sharply.                
Napoleon had denounced such ideas as contrary to the spirt of Animalism.     

4. 在表示抵消、中和时用到的动词: counteract 、

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1. 创建、打开和关闭文件的演示代码如下: ```c #include <stdio.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int main() { // 使用creat函数创建文件 int fd1 = creat("test1.txt", 0666); if (fd1 < 0) { perror("creat"); return -1; } printf("Created file test1.txt with file descriptor %d\n", fd1); // 使用open函数打开文件 int fd2 = open("test2.txt", O_RDWR | O_CREAT, 0666); if (fd2 < 0) { perror("open"); return -1; } printf("Opened file test2.txt with file descriptor %d\n", fd2); // 使用close函数关闭文件 close(fd1); close(fd2); printf("Closed files\n"); return 0; } ``` 2. 统计单词数和英文介词个数的代码如下: ```c #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main() { FILE *fp; char filename[] = "animal farm.txt"; char word[100]; int word_count = 0, in_count = 0, on_count = 0, at_count = 0; fp = fopen(filename, "r"); if (fp == NULL) { perror("fopen"); exit(EXIT_FAILURE); } while (fscanf(fp, "%s", word) != EOF) { word_count++; if (strcmp(word, "in") == 0) { in_count++; } else if (strcmp(word, "on") == 0) { on_count++; } else if (strcmp(word, "at") == 0) { at_count++; } } printf("Total words: %d\n", word_count); printf("in count: %d\n", in_count); printf("on count: %d\n", on_count); printf("at count: %d\n", at_count); fclose(fp); return 0; } ``` 需要注意的是,上述代码中使用了`strcmp`函数来比较字符串是否相等,而在比较前需要将字符串转换为小写字母,否则可能会出现不匹配的情况。另外,由于单词可能包含标点符号等其他字符,因此需要使用`ctype.h`库中的函数来进行判断和处理。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值