PLEASE ALWAYS USE CODE TAGS (the <> formatting button to the right), when posting code! Along with the proper indenting, it makes it easier to read your code, and thus also easier to respond to your post. Tutorials on how to use code tags: http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/ I've found the second link to be the most help. Hint: You can hit "edit post", highlight your code and then press the <> formatting button. Note: This will not automatically indent your code! That part is up to you! I've found it's easiest to copy and paste pre-indented code directly from the IDE, that way it is already properly formatted. You can use the "preview" button at the bottom to see how it looks. Using Code Tags, @Handy Andy, from cplusplus.com |