如何检查空间?

· · 科技·工程

bool st;
//......
bool ed;
signed main(){
//......
    cout<<abs(&ed-&st)/1024/1024;
    return 0;
}

MLE:麻利儿。