Sounds like your teacher was having a bit of fun with you. There's no way a simple glass of coke will dissolve a tooth overnight. While coke does contain acids (citric acid for example) they're not...