 悬赏园豆:20
                [待解决问题]
                悬赏园豆:20
                [待解决问题] 
            
                 
        同样的代码,vscode没有输出,而codeblocks能正常运行,感觉和 递归调用的深度有关,但 $i <= 10$ 时才产生10个左右的节点,深度大概为3,很迷,希望有大佬能解答。
#include "Bplus_tree.h"
//#include <cstdlib>
//#include <ctime>
using namespace std;
int main()
{   
    //srand((unsigned)time(NULL));
    Bplus_tree* tree = new Bplus_tree();
    tree->Inite();
    for (int i = 1; i <= 10; i++) {
        tree->Insert(i, i + 1);
    }
    cout << "??" << endl;
    tree->Find(1, 2);
    return 0;
}

你上面的这个截图来看和vscode没有关系吧,g++直接编译的二进制文件
如果没输出?? ,估计程序执行中溢出等异常发生了吧,可以在Bplus_tree的实现中加一些cout输出,可以看到差别