I dont want to boar anyone with this trivial questions but as im learning C++ from the book by Deitel there are questions in the end of each chaper to test youre knowledge. Most of my questions will be how can i improve my code or if there is another way of doing it without redundant steps. So here is one of them. Could this have been done better ?
It looks pretty solid to me. There are no system calls which is good because you don't need them here, it works and draws the square. The only thing out of place is stdafx.h, because you don't use anything inside of it, but I know that M$'s IDE puts that in by default so meh.
Try expanding on this, if you're interested in a challenge modify the code to draw a triangle :D! Trust me this is harder then is sounds.
Thank you , ill give it a shot., actually its easy to draw one , it probably will take more steps if you want it hallow on the inside. Was that what you meant ?