Then you were wrong.
Quote:1. I thought 'foreach" was a C++ "feature" - in QT doc they call it macro "Q_FOREACH" -
not sure which way is up...
C++ has NO
foreach construct, however, it provides the range-based
for, see Range-based for loop (since C++11) - cppreference.com[^].
I cannot find the
Quote:2. The syntax
foreach(QString str, StringArray[MAX_ARRAY])
StringArray class in
QT documentation. Do you meant QStringList Class | Qt Core 6.3.2[^]?
On the other hand, if you use a (
C-like) array of
QStrings, then you could use the
"In testa che avete, Signor di Ceprano?"