Code:
#include "class_club_public.h"
#include "class_club_prive.h"
#include "fonctions.h"
void main()
{
Club *pr;
Club** liste;
pr = new Club_Prive(); //statement 1
(*liste) = new Club_Prive(); //statement 2
(*(liste+0)) = new Club_Prive(); //statement 3
(*(liste+1)) = new Club_Prive(); //statement 4
liste[0] = new Club_Prive(); //statement 5
}
I have an abstract class called Club. Another class, which inherits from Club, called Club_Prive. Now class Club_Prive works perfectly fine; constructors, membre functions and all.
In the code above, statment 1 works fine. Everytime I try to run statement 2 (3 or 4 or 5), the program crashes; compiles perfectly though. Wtf is up with this shit?