I'm new in c++ programming and I'm trying to understand better the differences between array and vector. In my program I've got a class Graph with some arrays as private members. The class has a method that use these arrays to implement the Prim's algorithm for minimum spanning tree. I took the algorithm from this page and changed it for my program.
I am now asked to use vectors instead of arrays so I would like to know:
How many things do I really have to change? The declaration and the constructors, ok. But the cycles, the initializations. Do I have to change everything? The program works anyway. Is it so important to use vector's function?