使用 Newtonsoft 我们有一个自定义解析器来忽略空集合。.Net core 3.1 中的新 system.text.json 是否有任何等效配置
我有一个类ID3和一个类Tree.类树的对象在ID3中使用,并显示未声明树的错误.
代码看起来像
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <math.h>
#include <vector>
using namespace std;
class ID3 {
public:
string v[];
int x;
public:
double Hi(Tree data)
{
int y=x-1;
}
};
class Tree{
Tree();
}
Run Code Online (Sandbox Code Playgroud)