#include <iostream>
using namespace std;
class student {
public:
string name;
int id;
string address;
};
int main(int argc, char *argv[]) {
// a single object
student * s = new student; // like s = (student *) malloc(sizeof(student));
s->name = "Jeff";
s->id = 1;
delete s;
// one-dimensional array
int *A = new int[5]; // allocate memory, A = (int *) malloc(5 * sizeof(int));
for(int i=0; i < 5; i++)
cin >> A[i];
delete[] A; // free memory
// two-dimensional array
int **B = new int*[4]; // like B = (int *)malloc(4 * sizeof(int *));
for(int i=0; i < 4; i++)
B[i] = new int[3]; //
for(int i=0; i < 4; i++)
for(int j=0; j < 3; j++)
cin >> B[i][j];
for(int i=0; i < 4; i++)
delete[] B[i];
delete[] B;
return 0;
}