C++复制bool st; //...... bool ed; signed main(){ //...... cout<<abs(&ed-&st)/1024/1024; return 0; } MLE:麻利儿。