- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
- Interests
- Guitar (especially Flamenco) Kizomba dancing
20 Posted Topics
Re: I haven't run it but at first glance I think you want a[i].name both for when you input and output names. So for input use setName and for output don't refer to name but use a[i].print(); | |
What is the most comprehensive book/online source for multithreading? Thanks! | |
What is the most comprehensive book for multithreading? | |
Re: The only one I know of is Brainbench but it is not a proper certification because you can take the test at home. There are other tests e.g. previsor and IKM. | |
Re: I don't think there isn't a microsoft c++ certification. Ancient Dragon: I did a certification in C# and thought quite a lot of knowledge was required to pass. I think it makes a small difference to many employers working with C#. It is not a degree but not worthless IMHO … | |
Re: I agree with Aranath when using 'new' the object will exist beyond the return statement and needs to be deleted. It doesn't cause problems because the memory leaked is small and once the program ends the memory is freed up. Aranath I wanted to ask you how using auto_ptr or … | |
Re: Has this interview happened now? When is it due to happen? | |
Re: I guess you cannot use std::set so I think you would need to create an ordered binary tree to represent your set. My understanding is the vector does not represent the set, the data from the vector will be converted (losing all duplicates) into the set using your function. I … | |
I have heard you can efficiently use your GPU to do fast floating point calculations. This can be done using OpenGL but you may have to use the library in an unorthodox way or graphics card toolkits such as CUDA (by nVidia) which I guess is Graphics card specific. Does … | |
I have heard you can efficiently use your GPU to do fast floating point calculations. This can be done using OpenGL but you may have to use the library in an unorthodox way or graphics card toolkits such as CUDA (by nVidia) which I guess is Graphics card specific. Does … | |
Re: Jack 1 I think this is what you wanted [CODE]#include<iostream> using namespace std; int main() { int b,c,i; int myarray[10]; cout<<"Please enter nos"<<endl; cin>>b; for(c=2, i=0;c<b;c++) { if (b%c==0) { myarray[i]=c; ++i; } } cout<<"The factors of the no. are "; for(int j=0;j<i;j++) { cout<<myarray[j] << " "; } cout … | |
This problem originates from a job interview which could be solved in C++ or C#. As far as I can remember it was to implement a queue that can be added to by multiple threads and accessed by multiple threads. I haven't tried it in C# yet although I think … | |
Re: Sorry didn't see other replies. But now can someone tell me how to delete a post? ;-D | |
Re: I would like to have a look at this. If you have a mini project which reproduces the error that would save me a lot of time. Thanks | |
Re: Just to comment on the question in your comment comment [CODE]// random seed - how good is this I wonder?[/CODE] When I did Monte Carlo we preferred to use a definite seed for 2 reasons: 1. You can reproduce your results. 2. If you want to improve the accuracy of … | |
Re: Have tried your code out and didn't get any errors. Have you uploaded the version causing the problem? | |
Re: Tried it in VS2005 and linux g++, both give errors even if you change parameter types. Works if you change function name or use a forwarding function but I guess you knew that. [CODE]class Particle{ public: bool isDead()const {return true;}; static bool isDead(const Particle & par) {return true;}; static bool … | |
Re: using your own code a simple example below. Try changing print function to virtual in the base class and the output is different. YNote we are using pointers to the base class for both base and derived objects. [CODE]int main() { base* ptr = new base(); base* ptrDeriv = new … | |
Re: The leaf is deleted but how is the node with the pointer to the leaf updated and set to null? During traversal this pointer will be used even though it has been deleted? |
The End.