can someone take a quick look at this?

This is a discussion on can someone take a quick look at this? within the C++ Programming forums, part of the General Programming Boards category; I just had some questions on the code I'm working on now
1. will it work? I'm not finished yet ...

Rule #1 about programming, do it in sections. Make a small part, get it to work properly and then go on to another part. That way you get to enjoy the fun of coding and not end up tripling the time it takes to make a program by debugging for days.

As for if it will work, I don't know. I'm not capable of compiling anything at the moment and the idea of formatting your code makes me shudder. Use the code tags here. Reformat using those tags and I'll take a look and see if there are any glaring errors.

>2. is there any way to make it less long?

Sure, there are plenty of ways to shorten code, but you have to consider readability. Do you want really short code that only an obfuscated code contest judge would love? Or do you want decently sized code that everyone can read and understand without too much trouble?