From 6733d524b9ca3b120d728870907c81da429f8a34 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 8 May 2017 10:34:13 +0200 Subject: compito 8/5/2017 --- cpp/compito.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/cpp/compito.cpp b/cpp/compito.cpp index ce3863d..205dc59 100644 --- a/cpp/compito.cpp +++ b/cpp/compito.cpp @@ -19,9 +19,9 @@ int main() { carica(); - for(int i = 0; i < N; i++) { - if(!utili(pV[i])) - cout << "Attenzione" << endl; + for(auto i : pV) { + if(!utili(i)) + cout << "Attenzione -> " << i.citta << endl; } ord(); @@ -92,10 +92,3 @@ void visualizza() cout << i.entrate << endl; } } - - - - - - - -- cgit v1.2.3-18-g5258