Firstly, always sure the positive rail at the top, and the negative rail at the bottom.
The next thing to do is to look up the LM311 datasheet and see what to do with those two outputs.
Then you can do the normal magic to create a Schmitt trigger.
Please feel free to discuss what you find with us to make sure you've got it right before moving on it you have any doubts.
I should mention that it will possibly come down to there being two possibilities for the output configuration. Consider the difference between them and whether it makes a difference in your circuit.