单项选择题有如下程序: #include<iostream> using namespace std; class Test public: Test() n+=2; ~Test() n-=3; static int getNum()return n; private: static int n; ; int Test::n=1; int main() Test*p=new Test; delete p; cout<< n= <<Test::getNum()<<endl; return 0; 执行后的输出结果是( )。
单项选择题语句ofstream f( SALARY.DAT ,ios::appl ios::binary);的功能是建立流对象f,试图打开文件SALARY.DAT并与之连接,并且( )。