hi, I'm having problems with the code below. Can someone help me? When I run the program, I am unable to get the output of GetMissile, GetLaser,.. Also, instead of displaying the correct 'prices'...
I graduated from college a few years with a degree in a STEM field, but I am now looking for entry-level work as a software engineer. Currently, I only know C++ but I am also interested in learning...
The entire code is too long to post here. I only included part of the code, since I didn't think alot of it was relevant. But I'll post more of it if you want to see it
I'm getting the error for the following code "error C2664: 'KaibaMainPhase' : cannot convert pa rameter 1 from 'void (__cdecl *[2])(std::vector<_Ty> &,std::vector<_Ty>...
thanks again for the suggestion!!! Heres the current code. I think the problem may be solved! I was able to get 500 n_simulations in only 5 minutes, which is about 10 times the previous speed. I'll...
I made those changes. Also, I noticed I opened the ofstream too much, and that I'm better off opening the file once, writing everything, then closing after all the data is written.
that previous attachment is wrong. the correct one is in this message. I fixed one of the if statements, as the previous one evaluated a few of them as 'if island[][250]', but island only goes from 0...
so my current program uses two array variables, each of size 250x250, and I use the ofstream function to output the stuff on Notepad. When I first ran it with each array variable of size 50x50, I...
The code I have a problem with has been shortened so that only the relevant part is in this message. I have a problem with this code in that the value for height[a][b] vanishes from 0 to 1, from...