* Very basic arrays operations
#include <CoreAPI.h>
for (auto& a : list){
res << a << " ";
}
}
EXPORT
int main(){
array.Add(1);
array1.Add(2, 10);
array1.Insert(3, 5);
array1.RemoveAt(5, 2);
show(array1);
int x[3] = { 7,8,9 };
array1.AddRange(x, 3);
array.AddRange(array1);
array.Reverse();
show(array);
int pos_of_2 = array1.find(2);
for (int x : array) {
}
for (int i = 0; i < array.Count(); i++) {
if (array[i] == 5) {
array.Remove(i--);
}
}
show(array);
array.Clear();
array = array1;
array.forEach(
[&](int x) {
});
array1.Fill(7);
show(array1);
return 0;
}
the rich dialog. You may customize it, show your custom parameters and custom buttons.
Definition CoreAPI.h:3811
dialog & ok()
add Ok button
int show()
Show the dialog. This is usually the last command in the chain.
dialog & text(const char *id)
pass the header text of the dialog
comms::cList< X > list
the array template, see cList
Definition CoreAPI.h:70
comms::cStr str
the string that is compatible with the 3DCoat engine, see the cStr
Definition CoreAPI.h:67