scilab: add a delete in struct example
This commit is contained in:
parent
29a1762149
commit
ca69e5e405
1 changed files with 7 additions and 5 deletions
|
|
@ -2,11 +2,13 @@ lines(0);
|
|||
ilib_verbose(0);
|
||||
exec loader.sce;
|
||||
|
||||
//create a struct
|
||||
a=new_Bar();
|
||||
Bar_x_set(a,100);
|
||||
// Test use of a struct (Bar)
|
||||
|
||||
a = new_Bar();
|
||||
|
||||
Bar_x_set(a, 100);
|
||||
printf("a.x = %d (Sould be 100)\n", Bar_x_get(a));
|
||||
|
||||
delete_Bar(a);
|
||||
|
||||
exit
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue