I am a newbie in C++ and recently reading the coding examples online, then I found the followings:
1 2 3 4 5 6 7 8 9 10 11 12 13
class graph
{
private:int n;
int **a;
int *reach;
int *pos;
public:graph(int k=10);
void create();
void dfs();
void dfs(int v,int label);
int begin(int v);
int nextvert(int v);
};
I do not understand what ** stands for. I know * referring to pointer, but **...
Yes. Pointers to pointers aren't used as often as singular pointers, but they can be useful. You should really only use a pointer to pointer if you know exactly why it is you need it.