#include <iostream>
#include <string.h>
using namespace std;
struct MyCustom
{
public:
int param1;
int param2;
int param3;
MyCustom (int p1, int p2, int p3)
: param1(p1)
, param2(p2)
, param3(p3)
{
}
};
// typedef *MyCustom MyCustomType;
int main()
{
MyCustom *customs[2] = {
new MyCustom(1, 2, 3),
new MyCustom(4, 5, 6)
};
for (int i = 0; i <= 1; i++)
{
cout << customs[i]->param1 << endl;
cout << customs[i]->param2 << endl;
cout << customs[i]->param3 << endl;
cout << endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: