The code is too long to paste here but does anyone know what could cause "project.exe is not working on windows"? the program compiles fine and there are no build errors http://pastebin.com/ceS4wJNm
Line 58, Rankno isn't being incremented, but the loop continues while it is less that something else, meaning an infinite loop. There might be other things (such as I think a loop started at 1 and ended at the size of an array), but I stopped looking when I found the above.
Step through your program using the Visual Studio debugger - set a breakpoint before where it crashes and step through your code. You will find the cause of the crash easily.
Thanks a lot :D yeah im basically self taught so im afraid i never learnt how to use backtraces or break points or debuggers... i just run the code and pray tbh, and try and figure out any errors myself
The debugger is the most helpful tool in all cases, both when you are first learning to program and also when you are a professional. It lets you step through code line by line to see the flow of the program, it shows you where your program crashes and where it gets stuck, it tells you the value of all variables while the program is running, etc. Visual Studio's debugger is widely considered the best one on Windows.
By the way, make sure you're using Visual Studio 2015 so you get the latest and greatest C++ language support.