theoretically, you could store the position of the objects you want to detect collision with in an array.
then just have a simple Boolean(or even void if the game is simple enough) to detect whether a collision has taken place between the object your checking and your sprite/other object that could be doing the colliding.
for(int I=0; I<maxObjects; I++)
if(object1_x >= object[I] && object1_x <= object[I] + object[I].width )
this is really messy, but if you want to come up with your own method of detecting collision, you could do something along the lines of that.
I do however recommend using Box2D, much easier.