Mohammad, why don't you simply first test if your code behaves as expected? Reading over someone's code and deciding if everything is correct or not isn't that easy. Of course sometimes you can see big mistakes immediately, but running a program inside one's mind is difficult. When code does not work, it often is a very little fault (one wrong bit in a configuration) that you read over easily. So run your code and debug it. Dennis
↧