21 years, 4 months ago
Highlights
Hi.You give NULL to ptr before first redim call, so the delete fail on NULL.fprintf(stderr, "ready to crash!\n");delete source;source = NULL;change to this:fprintf(stderr,…
21 years, 4 months ago
22 years, 3 months ago
Or you can use SiCrane's method without star (*) :typedef void FunctionPointer(void);FunctionPointer pointer_array[3] = { f1, f2, f3 };pointer_array[MSG_A]();[Edited by - cuBie…
22 years, 3 months ago
22 years, 4 months ago
Instead switch you can use list or array like this:#include "stdafx.h"#include "conio.h"#include <list>#include <iostream>typedef unsigned int DWORD;class Instructio…
22 years, 4 months ago
Latest Activity
Hi.You give NULL to ptr before first redim call, so the delete fail on NULL.fprintf(stderr, "ready to crash!\n");delete source;source = …
21 years, 4 months ago
Or you can use SiCrane's method without star (*) :typedef void FunctionPointer(void);FunctionPointer pointer_array[3] = { f1, f2, f3 };pointer_array[MSG_A]();[Edited by …
22 years, 3 months ago
Instead switch you can use list or array like this:#include "stdafx.h"#include "conio.h"#include <list>#include <iostream>typedef unsigned int DWORD;class Instruction{ public : …
22 years, 4 months ago