source: trunk/src/mesh/test_node2d.cc @ 339

Last change on this file since 339 was 208, checked in by cxsong, 18 years ago

moved to src/mesh dir

File size: 262 bytes
Line 
1#include "node2d.h"
2#include <vector>
3
4int main()
5{
6        vector<RpNode2d> list(10);
7        int i;
8
9        for (i=0; i<10; i++) {
10                // set id, x, y
11                list[i].set(i, i, i+1);
12        }
13        printf("list size: %d\n", list.size());
14        for (i=0; i<10; i++) {
15                list[i].print();
16        }
17
18        return 0;
19}
Note: See TracBrowser for help on using the repository browser.