- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Currently applying for jobs
- Interests
- Non-computing: Beer, Psychology, getting out-and-about. Computing: C++, Image Processing, Computer Vision,…
Re: Ancient Dragon: I think he's talking about a 3d game of the first person shooter game type. tomtetlaw: If you have the gun rendering already, simply align the model with the direction of the camera, slightly offset the position of it and you should be away. Best of luck! Adam | |
Re: From the Design Patterns book (Gamma, Helm, Johnson, Vlissides):[quote][b]SINGLETON[/b] ------------------- [b]Intent[/b] Ensure a class has only one instance, and provide a global point of access to it.[/quote] As a singleton is globally unique, I assume that what you require would simply be an instance of your object inside the thread … | |
Re: You should change the array definition to this: [b]int a[3];[/b] ...and the allocation to this: [b]a[0] = 1[/b] [b]a[1] = 2[/b] [b]a[2] = 3[/b] If you require dynamically sized arrays you should read into dynamic memory allocation with C++. Regards, Adam [i]Edit: or use a std::vector[/i] | |
Re: In probability.cpp try changing the following [icode]double f(const double x) [/icode] to [icode]double Mass1::f(const double x) [/icode]. Adam | |
Re: [QUOTE=Ronen444;788366]I've downloadws today the IronPython. One thing i've noticed that if you type, for example, 5+6 it calculates it..! So, i tried to do that with my App too, without success...[/QUOTE] You should be able to get this going with std::cin. Here's a quick example: [code]#include <iostream> int main() { … | |
Re: Hey, What it looks like is probably happening is that you are overwriting previously set mines. For example, You set a mine (to true) on the first iteration of your outer while loop at (2, 2). However, at the end of this first iteration you have not placed enough mines. … | |
Re: As I'm guessing you've not got the headers for the video driver dll's or some kind of SDK for your video device.... If you have the device running with a driver already you should be looking at the following: 1. DirectShow SDK -- Old but still useful for accessing video … | |
Re: The problem occurrs first on about line 31. (Then a few more times later) What's happening here is you are erasing the iterator [b]it[/b]. This makes [b]it[/b] invalid! Following this your for loop attempts to call the incremental operator '++', however, now the iterator is invalid, the operation will fail, … |