• 2021-04-14
    执行语句序列ofstream outf(“SALARY.DAT”);if(...)cout<<“成功”;else cout<<“失败”;后,如文件打开成功,显示”成功”,否则显示”失败”.由此可知,上面if语句的条件表达式是