[ create a new paste ] login | about

Link: http://codepad.org/ivglgNg1    [ raw code | output | fork ]

C++, pasted on Nov 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<iostream>
using namespace std;

class point{
public:
int x,y;

point()
{
x = 0,y = 0;
}
};

int main()
{
point p[100][100];
cout<<p[0][0].x;
}


Output:
1
0


Create a new paste based on this one


Comments: