source: CIVL/examples/showStates/structsArray.cvl@ bb03188

main test-branch
Last change on this file since bb03188 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 276 bytes
Line 
1typedef struct Point{
2 double x;
3 double y;
4} Point;
5
6typedef struct Line{
7 Point start;
8 Point end;
9} Line;
10
11void main(){
12 Point p0={0,0}, p1={1,1}, p2={2,2};
13 Line l0={p0, p1}, l1={p1,p2}, l2={p2, p0};
14 Line lines[3];
15
16 lines[0]=l0;
17 lines[1]=l1;
18 lines[2]=l2;
19}
20
Note: See TracBrowser for help on using the repository browser.