structure defined in c ++

the Node {struct
    int K;
    int to;
    int cost;
    the Node (int to, int K, int costt = 0.0 ): K (K), to (to), cost (costt) {}   // default parameters with variable It needs to be put back

    Node(){

    }
};

 

Node node = Node (); // Botsuyu new

Guess you like

Origin blog.csdn.net/qq_41698081/article/details/91126331