home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.disi.unige.it
/
2015-02-11.ftp.disi.unige.it.tar
/
ftp.disi.unige.it
/
pub
/
.person
/
CataniaB
/
teach-act
/
esempi
/
Comp-Sep
/
occur.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-03-11
|
243b
|
16 lines
#include <stdio.h>
#include "table.h"
int main()
{
int i;
table t = newTab();
printf("Enter a sequence of integer numbers\n");
while (scanf("%i",&i)==1)
insert(t,i,getVal(t,i)+1);
printf("Occurrences table:\n");
print(t);
}