classes, functions, or ???

Pages: 123
@thmm @George P

Wow. that's brilliant, and now I'm understanding. I'm a visual learner, so once I see it, I get it. So it looks like you effectively have one position in the array (currently) and you're calling that one array position, or that one array in total. and for the wait time between lines, you're providing one function that triggers the wait time per line.

I'm learning the heap and stack, containers and all, I'm gonna take a while to dissect that.
That std::array in thmm's code has 7 elements, it is not a single element array. The array is initialized using a deduction guide with 7 C strings.

https://en.cppreference.com/w/cpp/container/array/deduction_guides

Each C string element has a different size.

The for loop, a range-based for loop, displays each element in turn followed by the 5 second delay.
Topic archived. No new replies allowed.
Pages: 123