summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-05-08 10:34:13 +0200
committerGitHub <noreply@github.com>2017-05-08 10:34:13 +0200
commit6733d524b9ca3b120d728870907c81da429f8a34 (patch)
tree9b89d7771603a00a8d0ad711fb88560cce6682c1 /cpp
parent9ac0d6a1a3009edae1af988a482c3b58951c59fd (diff)
compito 8/5/2017
Diffstat (limited to 'cpp')
-rw-r--r--cpp/compito.cpp13
1 files 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;
}
}
-
-
-
-
-
-
-