summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-01-18 22:18:36 +0100
committerGitHub <noreply@github.com>2017-01-18 22:18:36 +0100
commitdc3e22ef34f71cc0a58230b77ab79ada421fb1e7 (patch)
tree734609a74f5d80650e0da6c4b0ed3fb2f8a9ad9d
parentccaa37375635f87a8d9dc7fb9f7435f2049cbe12 (diff)
Update numeri.cc
-rw-r--r--numeri.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/numeri.cc b/numeri.cc
index 10be37f..217d6d6 100644
--- a/numeri.cc
+++ b/numeri.cc
@@ -8,11 +8,14 @@ int main(void)
fstream file;
file.open("dati.dat");
- int a, b, c, seq = 0, tot = 0, num;
- char stringa[] = "112356812983";
+ typedef unsigned short int size_t;
+
+ size_t a, b, c, seq = 0, tot = 0, num;
+ char stringa[] = "12312312312";
char l;
while(true)
{
+ cout << "3 numeri: ";
cin >> a >> b >> c;
if(a >= 0 && a <= 9 && b >= 0 && b <= 9 && c >= 0 && c <= 9){
if(a != b && b != c && a != c) break;