Support Board
Date/Time: Mon, 27 Jan 2025 04:38:55 +0000
Sorting arrays in ACSIL
View Count: 1059
[2019-02-20 16:55:43] |
User470516 - Posts: 78 |
Dear SC team, I am trying to sort a basic array. I have not been able to find any function doing this in the ACSIL doc, so I assume that does not exist. I have therefore decided to use the C++ sort function and I have #include <algorithm> declared just before #include "sierrachart.h". The instruction: sort(intArray, intArray + SIZE); generates a compiler error (I use SC compiler): 'sort' was not declared in this scope. Does that mean that Sierra Chart development environment does no support this? Would MS Visual Sutdio C++ help, or am I looking in the wrong direction? Thank you for the support. Regards, Laurent |
[2019-02-21 05:20:49] |
Sierra Chart Engineering - Posts: 104368 |
That header is already included. Do not include it yourself. You should just be able to use: std::sort
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2019-02-21 05:21:12
|
To post a message in this thread, you need to log in with your Sierra Chart account: