Okay you have to pass it by reference, correct?
void Test(int &Par_Add) { Print("Add: ",IntegerToString(Par_Add)); Par_Add++; } int OnInit() { int AddRett=0; for(int i=0; i<30; i++) { Test(AddRett); } return(INIT_SUCCEEDED); }
Ti stai perdendo delle opportunità di trading:
- App di trading gratuite
- Oltre 8.000 segnali per il copy trading
- Notizie economiche per esplorare i mercati finanziari
Registrazione
Accedi
Accetti la politica del sito e le condizioni d’uso
Se non hai un account, registrati
I don't understand this triviality, I simply want to add a number sequence in a function but this doesn't happen and I don't understand why.
How can I pass a variable into a function and have it add up with a simple ++ ? Thanks