All pastes #226703 Raw Edit

Stuff

public text v1 · immutable
#226703 ·published 2006-10-28 19:59 UTC
rendered paste body
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    int** m = NULL;
    
    m = new int* [2];
    
    for(int i = 0; i < 2; i++){
            m[i]= new int[2];
    }
    
    m[0][0] = 1;
    m[0][1] = 0;
    m[1][0] = 0;
    m[1][1] = 1;
    for(int i = 0; i < 2; i++){
            for(int j=0; j < 1; j++){
                    cout<<m[i][j]<<m[i][j+1]<<"\n";
            }
    }
    
    delete [] m[0];
    delete [] m[1];
    delete [] (*m);

    system("PAUSE");
    return EXIT_SUCCESS;
}