1) Open notepad.
2) select File->new
3) copy + paste code into notepad document.
4) select File->save as
5) Enter bag.h as the file name
6) click "save"
Thanks to fun2code.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/