Quote Originally Posted by mcurley104 View Post
...
pretty sure there is some problems with that but thats been my best attempt at starting it
Why are you "pretty sure"?
Did you try to compile this code?