[color=red]这道题结果为什么是这样[/color]
程序代码:
#include<iostream> #include<stdio.h> class csum { public: virtual int add(int a,int b) { return (a+b); } }; int main ( ) {int a; csum* pcsum=new csum; printf("number is %i,the other number is %i",a,pcsum); getchar(); return 0; }结果:number is 23,other number is 4077528.
求解答
[ 本帖最后由 az9841682 于 2010-10-12 11:58 编辑 ]