summaryrefslogtreecommitdiff
path: root/demos/cpp_find.dem.sce
blob: 56147370a06bc92ece3231cbeb1eb438367356ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
// This file is released under the 3-clause BSD license. See COPYING-BSD.


function demo_cpp_find()
    mode(-1);
    lines(0);

    disp("cpp_find(''Scilab is a numerical computational package'',''numerical'')");
    disp("position : " + string(cpp_find("Scilab is a numerical computational package","numerical")));
    disp("cpp_find(''Scilab is a numerical computational package'',''package'')");
    disp("position: " + string(cpp_find("Scilab is a numerical computational package","package")));

endfunction


demo_cpp_find();
clear demo_cpp_find;