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