Support Board
Date/Time: Sun, 24 Nov 2024 11:09:15 +0000
Post From: [PROGRAMMING HELP] ACSIL compare SCDateTime
[2024-06-07 10:59:00] |
aknsyu71@gmail - Posts: 54 |
This code for comparing date and time gives me an error message I cannot figure whats wrong? SCDateTime IndexDateTime = sc.BaseDateTimeIn[i]; SCDateTime MySCDateTime(2000, 1, 1, 12, 0, 0); if (IndexDateTime == MySCDateTime.GetDateTimeYMDHMS(2024,5,3,13,30,0)) SummerTime[i] = sc.Close[i]; AK_NEWS.cpp:45:55: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 45 | if (IndexDateTime == MySCDateTime.GetDateTimeYMDHMS(2024,5,3,13,30,0)) SummerTime = sc.Close; |