類A有如下成員函數(shù) int A::fun(double x){return (int) x/2;} int A::fun(int x){return x*2;} 設(shè)a為類A的對象,在主函數(shù)中有int s=a.fun(6.0)+a.fun(2),則執(zhí)行該語句后,s的值為()
設(shè)在程序中使用如下語句申請了一個對象數(shù)組: Point * ptr = new Point[2]; 則在需要釋放ptr指向的動態(tài)數(shù)組對象時,所使用的語句是()