• 2022-06-03 问题

    下列函数中,()是对文件进行写操作。 A: get() B: ead() C: seekg() D: put()

    下列函数中,()是对文件进行写操作。 A: get() B: ead() C: seekg() D: put()

  • 2022-06-06 问题

    下列关于文件的随机读写的描述中,错误的是()。 A: seekg()函数只能用于定位文件指针而无法移动指针 B: tellg()是返回指针的当前位置,它往往与seekg()函数配合使用 C: ifs.seekg(20L,ios::cur);表示将文件位置指针从当前位置向后移动20个字节 D: seekg()函数有两种重载形式,分别用于文件指针的直接定位与相对定位

    下列关于文件的随机读写的描述中,错误的是()。 A: seekg()函数只能用于定位文件指针而无法移动指针 B: tellg()是返回指针的当前位置,它往往与seekg()函数配合使用 C: ifs.seekg(20L,ios::cur);表示将文件位置指针从当前位置向后移动20个字节 D: seekg()函数有两种重载形式,分别用于文件指针的直接定位与相对定位

  • 2022-06-19 问题

    输出流文件中的当前位置可以由下面哪个成员函数返回______。 A: tellg B: seekg C: seekp D: tellp

    输出流文件中的当前位置可以由下面哪个成员函数返回______。 A: tellg B: seekg C: seekp D: tellp

  • 2022-06-26 问题

    为了舍去流中的一些字符, 应该使用的输入流的成员函数是( )。 A: ignore B: peek C: get D: seekg

    为了舍去流中的一些字符, 应该使用的输入流的成员函数是( )。 A: ignore B: peek C: get D: seekg

  • 2021-04-14 问题

    中国大学MOOC:"若当前位置是文件中的第10个字符,文件总长度为100,则执行如下语句后指针指向第____个字符。istream& seekg(10, ios::cur) ";

    中国大学MOOC:"若当前位置是文件中的第10个字符,文件总长度为100,则执行如下语句后指针指向第____个字符。istream& seekg(10, ios::cur) ";

  • 2022-06-28 问题

    随机访问文件中所用到的函数的说法正确的是 A: seekp() 移动用于写入文件流的位置指示器 B: tellg() 用于获得读取文件流的位置指示器 C: seekg() 用于获得搜索文件流的位置指示器 D: tellp()用于获得读取文件流的位置指示器 E: move() 用于移动文件位置指示器

    随机访问文件中所用到的函数的说法正确的是 A: seekp() 移动用于写入文件流的位置指示器 B: tellg() 用于获得读取文件流的位置指示器 C: seekg() 用于获得搜索文件流的位置指示器 D: tellp()用于获得读取文件流的位置指示器 E: move() 用于移动文件位置指示器

  • 2021-04-14 问题

    中国大学MOOC: Part II Reading Comprehension (25 minutes)Section ADirections: In this part there is a passage with ten blanks. You are required to select one word for each blank from a list of choices given in a word bank following the passage. Read the passage through carefully before making your choices. Each choice in the bank is identified by a letter. You may not use any of the words in the bank more than once.注意:请在答题处填入相应的字母编号!字母一定要大写!Just because I believe I can do something doesn’t mean there won’t be any problems. But once I believe I can do it, I will seek _____11_____ for every problem I stumble on. And since it is a law of life that we find what we look for, if I look for solutions, I will find them. Any worthy dream is a dream worthy of _____12_____. Once I realize I can do it, the next step is to make a _____13_____. As soon as we make a commitment, great power is released. What _____14_____ were insurmountable hurdles are now reduced to obstacles of laughable insignificance. Our dreams don’t have to be grand to be great. We don’t have to become the world’s greatest pianist, an Olympic medal winner, or an internationally _____15_____ superstar. An aunt of mine sold gloves in a department store for most of her life. Her dream was to be the friendliest and most _____16_____ salesperson around. Year after year, the _____17_____ customers would return and deliberately _____18_____ her out. She brightened everyone’s day and touched the lives of thousands. Was her dream any _____19_____ significant than that of a prominent person? Of course not, but we all have the power to _____20_____ a dream that will make a difference to us and those we meet.A. answers B. solutions C. dealD. commitmentE. follow F. seekG. different H. sameI. helpful J. lessK. acclaimed L. challengingM. accomplishing N. seemingly O. obviously 11 ______________

    中国大学MOOC: Part II Reading Comprehension (25 minutes)Section ADirections: In this part there is a passage with ten blanks. You are required to select one word for each blank from a list of choices given in a word bank following the passage. Read the passage through carefully before making your choices. Each choice in the bank is identified by a letter. You may not use any of the words in the bank more than once.注意:请在答题处填入相应的字母编号!字母一定要大写!Just because I believe I can do something doesn’t mean there won’t be any problems. But once I believe I can do it, I will seek _____11_____ for every problem I stumble on. And since it is a law of life that we find what we look for, if I look for solutions, I will find them. Any worthy dream is a dream worthy of _____12_____. Once I realize I can do it, the next step is to make a _____13_____. As soon as we make a commitment, great power is released. What _____14_____ were insurmountable hurdles are now reduced to obstacles of laughable insignificance. Our dreams don’t have to be grand to be great. We don’t have to become the world’s greatest pianist, an Olympic medal winner, or an internationally _____15_____ superstar. An aunt of mine sold gloves in a department store for most of her life. Her dream was to be the friendliest and most _____16_____ salesperson around. Year after year, the _____17_____ customers would return and deliberately _____18_____ her out. She brightened everyone’s day and touched the lives of thousands. Was her dream any _____19_____ significant than that of a prominent person? Of course not, but we all have the power to _____20_____ a dream that will make a difference to us and those we meet.A. answers B. solutions C. dealD. commitmentE. follow F. seekG. different H. sameI. helpful J. lessK. acclaimed L. challengingM. accomplishing N. seemingly O. obviously 11 ______________

  • 1