Click here to Skip to main content
15,867,834 members

Comments by TRK3 (Top 200 by date)

TRK3 22-Feb-13 11:37am View    
True, but it solves his problem that the code won't compile. Which is what he's asking about it.
Let him wrestle with the problem of actually making a sparse array and then come back with more questions if he needs more help -- he'll learn a lot more that way.
TRK3 22-Feb-13 10:56am View    
Without knowing anything about your simulation system, that's kind of hard for us to answer.

Is this simulation software something you've written yourself, or are you using an existing simulation library/package of some kind? This is a pretty basic thing and ought to be covered in the documentation of the library/package you are using.
TRK3 21-Feb-13 18:31pm View    
Who told you you "have to make a BTree" ?

Is this a class assignment?

If so, then do the work.

If not, then why a BTree? It's not my first choice for implementing the requirements you give.
TRK3 21-Feb-13 17:38pm View    
The problem is contradictory.

The problem states that 40% have the value 10$, 40% have the value 25$ and 20% have the value 40$ -- that's a total of 100%.

There aren't any other values in the problem except those three discrete values. The value is not "continuous". It has only 1 of 3 discrete values.

Do you know how to represent that int your simulation system?
TRK3 19-Feb-13 20:23pm View    
Do you want to stop the user from actually typing those words?

Or would you be satisfied with removing them from whatever he typed after he clicks on the search button (before you actuall search)?