未分类题

下面程序的预设功能是:将文本文件readme 中的内容读出,显示在屏幕上。
include <fstream>
using namespace std;
int main ()
{
char buf[ 80 ];
ifstream file( 'readme');
while (_______________)
{
file.getline( buf, 80 );
cout<<buf<<end1;
}
me. close();
}
则程序中空白处应填入的语句为【 】。

A.getline(

【参考答案】

!file.eof()
!file.eof() 解析:文件流对象的成员函数eof的功能是在进行输入操作时,若达到......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
热门 试题

问答题
甲公司为一家非金融类上市公司。甲公司在编制2009年年度财务报告时,内审部门就2009年以下有关金融资产和金融负债的分类和会计处理提出了异议:(1)2009年6月1日,甲公司购入乙上市公司首次公开发行的5%有表决权股份,该股份的限售期为12个月(2009年6月1日至2009年5月31日)。除规定具有限售期的股份外,乙上市公司其他流通股自首次公开发行之日上市交易。甲公司对乙上市公司不具有控制、共同控制或重大影响。甲公司将该项股票投资分类确认为持有至到期投资,并采用权益法进行核算。(2)2009年7月1日,甲公司从上海证券交易所购入丙公司2009年1月1日发行的3年期债券50万份,该债券面值总额为5000万元,票面年利率为4.5%,于每年年初支付上一年度债券利息。甲公司购买丙公司债券合计支付了5122.5万元(包括交易费用)。因没有明确的意图和能力将丙公司债券持有至到期,甲公司将该债券分类为持有至到期投资。(3)2008年2月1日,甲公司从深圳证券交易所购入丁公司同日发行的5年期债券80万份,该债券面值总额为8000万元,票面年利率为5%,支付款项8010万元(包括交易费用)。甲公司准备持有至到期,并且有能力持有至到期,将其分类为持有至到期投资。甲公司2009年下半年资金周转困难,遂于2009年9月1日在深圳证券交易所出售了60万份丁公司债券,出售所得价款扣除相关交易费用后的净额为5800万元。出售60万份丁公司债券后,甲公司将所持剩余20万份丁公司债券重分类为可供出售金融资产。(4)2009年10月1日,甲公司将持有的戊公司债券(甲公司将其初始确认为可供出售金融资产)出售给庚公司,取得价款2500万元已于当日收存银行;同时,甲公司与庚公司签订协议,约定2009年12月31日按2524万元的价格回购该债券。该债券的初始确认金额为2400万元,假定截至2009年10月1日其公允价值一直未发生变动。当日,甲公司终止确认了该项可供出售金融资产,并将收到的价款2500万元与其账面价值2400万元之间的差额100万元计入了当期损益(投资收益)。(5)2009年12月1日,甲公司发行了100万张、面值为100元的可转换公司债券,发行取得价款10000万元。该可转换公司债券期限为5年,票面年利率为4%,每年12月1日支付上年度利息,每100元面值债券可在发行之日起12个月后转换为甲公司的10股普通股股票。二级市场上不附转换权且其他条件与甲公司该债券相同的公司债券市场年利率为8%。甲公司将发行可转换公司债券收到的10000万元全额确认为应付债券,在2009年年末按照实际利率确认利息费用。要求:1.根据资料(1)、(2)和(3),逐项分析、判断甲公司对相关金融资产的分类是否正确,并简要说明理由。2.根据资料(4)和(5),逐项分析、判断甲公司的会计处理是否正确,并简要说明理由;如不正确,还应说明正确的会计处理。
单项选择题
听力原文: Many people dislike walking into the bank standing in long lines and running out of checks. They're dissatisfied with the bank's limited hours too. They want to do some banking at night and on weekends. For such people, their problems may soon be over. Before long, they may be able to do their banking from the comfort of their own home any hour of the day, any day of the week. Many banks preparing online branches or internet offices, which means that people will be able to take care of much of their banking business through their home computers. This process is called interactive banking. On these online branches, customers will be able to view all their accounts, move money between their cards. Customers will also be able to pay their bills electronically and even email questions to the bank. Banks are creating online services for several reasons. One reason is that banks must compete for customers who will switch to another bank if they are dissatisfied with the service they receive. The convenience of online banking appeals to the kind of customer banks most want to keep, that is people who are young, welleducated and bare good incomes, Banks also want to take advantage of modem technology since they have moved into the 21st century.(37)A.Their business hours are limited.B.Their safety measures are inadequate.C.Their banking procedures am complicated.D.They don't have enough service windows.
A.
(37)
A.Their
B.
B.Their
C.
C.Their
D.
D.They
E.