خرید بک لینک

Vote count: 0

I have this constructor

class Vertex
{
    Vertex();
    ~Vertex();

    Edge* adjancies;
};

I wanted there to be array of adjancies, but it couldn't build. So I've created a pointer (Edge is my created class too).

And I have this piece of code with foreach loop that must iterate on all adjancies, but, of course, it not compiles.

Vertex getted_vertex = vertexQueve.top();
for(Edge & e: getted_vertex.adjancies)
            {
                Vertex v = Vertex(e._idFrom);
            }

Should I change the constructor or the loop?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 15 فروردين 1395 ساعت: 15:42

صفحه بندی