- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
Hi, If you really want to develop an operating system, you should learn some C++. Take a look at the C++ forum for suggestions on books and tutorials. However, what I suggest is that you start with some smaller projects, in order not to get bored with programming. Find a …
Hi, Just so I understand, why do you start iterator [ICODE]i[/ICODE] on 1? Cheers, Erik
In your if statement you should use a double equality sign: [CODE]monsternumber==1[/CODE] instead of: [CODE]monsternumber=1[/CODE] Cheers, Erik
If you want to loop over something, the syntax is as following: [CODE] int rowVector[5]; // Initializing for (int i = 0; i < 5; i++) { rowVector[i] = i; cout << rowVector[i]; }[/CODE] Initializing an array with both rows and columns is done as following: [CODE] arrar[number_of_rows][number_of_columns] [/CODE] Hope …
Hi Trepatch, The general answer is that no nonlinear solver can give you the global optimum. Most nonlinear solvers will give you a local optimum. In theory you could combine with some sort of generic algorithm, which would increase your chances of finding the global optimum (which is what I …
Hi, It looks ok, a few minor things I don´t understand - like why do you ask for coordinates of two different points in the setPoint function? Do you´ve any specific questions? Cheers, Erik
Hi, Even though daviddoria is right (you should post your code on the forum), I understand that you´re in some difficulties, since you´re program is unusually unstructured (I had a quick look at the source code). It would take days for me to find an unidentified error in your code. …
Try: void Deck::shuffleDeck() { srand(time(NULL)); // Set seed for random numbers std::random_shuffle(deck.begin(), deck.end()); } Cheers, Erik
The End.
erikandr