Type: Posts; User: larry burns
Search took 0.01 seconds.
September 14th, 2012, 06:35 PM
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'...
September 12th, 2012, 06:01 PM
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...
October 23rd, 2011, 02:23 PM
void KaibaBattleFunction(vector< vector<Card> > &Field, int MonsterCard, int MonsterToAttack, vector<Card> &KaibaGraveyard, vector<Card> &YugiGraveyard, int& KaLP, int&...
October 23rd, 2011, 02:22 PM
void DrawForKaiba(vector<Card> &KaibaHand, vector<Card> &KaibaDeck)
KaibaDeckSize = KaibaDeck.size();
cout<<"BEFORE you draw, there were "<<KaibaDeckSize<<" cards left...
October 23rd, 2011, 02:17 PM
using namespace std;
October 22nd, 2011, 05:41 PM
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
October 21st, 2011, 06:57 PM
I'm getting the error for the following code "error C2664: 'KaibaMainPhase' : cannot convert pa rameter 1 from 'void (__cdecl *)(std::vector<_Ty> &,std::vector<_Ty>...
October 17th, 2011, 08:36 PM
Never mind I figured it out
October 17th, 2011, 07:14 PM
I want to delete an element in a 2d vector, say  in "Field", which is a 4x5 vector
I know that for a 1d vector, I would just do
October 17th, 2011, 11:12 AM
Thanks for the help. I made the changes but now I'm getting these errors
error C2039: 'GetName' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
October 17th, 2011, 01:11 AM
I try to run the following, but I keep getting the error "error C2664: 'Card::SetName' : cannot convert parameter 1 from 'const char ' to 'char'"
I also got the following error;
October 16th, 2011, 01:17 PM
when I changed the declarations so that I declare the functions with reference as an argument instead, I get these error messages
error C2664: 'Beginning' : cannot convert parameter 1 from...
October 16th, 2011, 12:16 PM
I keep getting these error messages:
"error LNK2019: unresolved external symbol "void __cdecl MainPhase(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class...
April 26th, 2011, 12:52 AM
I didn't really get the above comments. Anyways, I tried this
vector< vector<float> >Temp(N, vector<float>T);
for (int i=0; i<N; i++)
April 21st, 2011, 09:46 PM
So in MATLAB, I can create a matrix with a size determined by the user input, such as below:
T=input('Number of data points for time variable? ');
N = input('Number of grid points N? ');
November 21st, 2009, 03:08 PM
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...
November 21st, 2009, 03:07 AM
thanks alot for the improved formatting version of my program. Anyways, is there anything else I can do to improve my nested loops ?
November 20th, 2009, 08:07 PM
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.
With all those...
November 20th, 2009, 05:11 PM
what do you mean the t=1 goes out of scope right away? I need it there so it can run through the if(t!=0) part
Thanks alot for that suggestion to break out of the loop after setting t to 0. My...
November 20th, 2009, 12:39 PM
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', but island only goes from 0...
November 20th, 2009, 12:19 PM
whats the L2 CPU cache? The last time i took a c++ class was 2.5 years ago, and I don't think I learned about that.
the code does compile. It just crashes if I have two 250x250 array...
November 20th, 2009, 03:56 AM
The program is in this message
November 20th, 2009, 03:55 AM
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...
November 13th, 2009, 01:40 AM
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...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.