blob: 0ea59209fb4542a359a6c2291e4fa60f12208b58 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "CombinedTrip.h"
#include <cstring>
int main() {
while (1) {
char** dest = new char*[3];
for (unsigned i = 0; i < 3; i++)
dest[i] = new char[2];
strcpy(dest[0], "A");
strcpy(dest[1],"B");
strcpy(dest[2], "C");
CombinedTrip ct(RegNumb(1, 2, 3, 4), 1, 5, "ASKDJHS", 35, (const char**)dest, 3, 57);
ct.print();
for (unsigned i = 0; i < 3; i++)
delete[] dest[i];
delete[] dest;
}
}
|