阅读下列程序,并给出程序运行的结果。#include<iostream> using namespace std; class Obj
{
Public:
Static int i; Obj(){i++;}
~0bj(){i--;}
Int getVal(){return i;}
};
Int Obj::i=0; void f()
{
Obj ob2; cout<<ob2.getVal()<<endl;
}
Void main()
{
Obj ∗ob3=new Obj; cout<<ob3->getVal()<<endl delete ob3; cout<<Obj::i<<endl;
}
上面的程序运行后将有二行运行结果,第一行是( )
(含图)第二行是( )