All pastes #511626 Raw Edit

Something

public cpp v1 · immutable
#511626 ·published 2007-05-26 15:37 UTC
rendered paste body
// g++ umaxx.cpp -o umaxx && ./umaxx#include <iostream>#include <string>struct pageTest{        int a;};void kmapTest(struct pageTest* p){        std::cout << "a: " << p->a << std::endl;}int main(int argc, char* argv[]){        struct pageTest pages[2][4] = {                {1, 2, 3, 4},                {5, 6, 7, 8},        };        for(int i = 0; i < 2; ++i){                for(int j=0; j < 4; ++j)                        kmapTest(&(pages[i][j]));        }