Hey everyone
I'm in a beginners C class, and have been asked to return the number of each integer inputted from a file
ie. 2 2 4 7 4 2 2 10 9 9 would return
4 2
2 4
1 7
1 10
2 9
I figured this would be easy... but we're not allowed to use arrays of any kind, and only can use printf and scanf from stdio.h
Any help (even just a concept) of how to do this would be great. I don't want the program in C... just an idea how to start this
I'm in a beginners C class, and have been asked to return the number of each integer inputted from a file
ie. 2 2 4 7 4 2 2 10 9 9 would return
4 2
2 4
1 7
1 10
2 9
I figured this would be easy... but we're not allowed to use arrays of any kind, and only can use printf and scanf from stdio.h
Any help (even just a concept) of how to do this would be great. I don't want the program in C... just an idea how to start this