cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Calculate value of an element based on v
Calculate value of an element based on values of others elements of the same array
Mar 22, 2022 at 1:17pm UTC
BJKY0712
(10)
Say I have a temp array with 3 elements and I change the values of the first 2 elements using a for loop constantly. Is it possible to calculate a value with the values of the first 2 elements and assign it to the third element automatically?
Mar 22, 2022 at 1:21pm UTC
seeplus
(6597)
Within the loop that changes the values of the first 2 elements, the third can be calculated.
Have you example code?
Topic archived. No new replies allowed.