General C++ Programming - June 2011 (Page 22)

Does Anybody Here Know C#?
 
If you don't have knowledge of C#, why're you reading this? If you do have knowledge of C#, then maybe you can help me. Here's the problem: I'm trying to get ...
[6 replies] Last: Thank you for you help, WebJose; I got it working. I'll update the cod... (by closed account zb0S216C)
by ofun
arrays
 
is there a function to find the minimum element in the array ?
[1 reply] : see here http://www.cplusplus.com/reference/algorithm/min_element/ (by david91)
by isnork
Pointers to a hierarchy of objects
 
Hi, I have a hierarchy of classes like this: * Base class: Object. * Derived classes from Object: ObjectDerivedOne & ObjectDerivedTwo. * Derived class...
[4 replies] Last: It looks like the prototype pattern is an extension of the clone patte... (by Disch)
by ofun
pointers
 
what is meant by (int** x ) ? thanks in advance
[4 replies] Last: thanks alot for your efforts :) (by ofun)
by jorgen
Size limit on three-dimensional vector?
 
I have a program where I want to insert random numbers into a three-dimensional vector. It works fine up to a certain size and then I get Aborted (core dumped ...
[13 replies] Last: You can have R call C functions for particular calculations if impleme... (by kev82)
How to seed and use SUPRKISS64.c?
 
by the venerable Professor George Marsaglia who passed away just 4 months ago source: http://forums.silverfrost.com/viewtopic.php?t=1480 question: how...
[7 replies] Last: the actual seed appears to be all the bits in Q Bear in mind the... (by kev82)
by Thijs
C++ random class
 
I have a question about het the c++ random class. I have a program which has multiple class objects, each calls the rand() function from the c++ library. Does e...
[6 replies] Last: Just generate a series of random number with a specified seed and give... (by Thijs)
how to tell when a file is modified by other programs
 
Good Morning, I'm using wxWidgets to make a gui that writes a text file. It also has the ability to load in pre-written files. the file extension is .in . The ...
[4 replies] Last: thanks again (by gillyAmes)
How would I make some security key type mechanism to protect my software?
 
I'm thinking about making software that I would only want a few to have access to. How would I implement some type of key that's needed to install and use this ...
[1 reply] : Well one (albeit easy) way would be to encrypt the physical program an... (by ultifinitus)
good c++ library for (web) animations
 
ive been asked to make an animation which needs to be placed on a website. i plan to make this annimation using c++. so i wanted a suggestion for a good c++ li...
[2 replies] Last: C++ programs are compiled in native code, they contain instruction in ... (by bartoli)
__lock_fhandle Fails
 
Hello, When I try to allocate some memory: Samples = new double ; An exception is thrown in lock_fhandle where retval = 0. Why is this? It hap...
[7 replies] Last: If a C runtime function will not throw a C++ exception. If you are se... (by kbw)
While Loops
 
When I run my program, everything executes as written. But, when it gets to the while-loop statement , my 'cout' statements work, but my 'cin' statements ...
[1 reply] : #include <iostream> int main (){ int i = 0; while( i != -1... (by hamsterman)
by CivDav
In need of a little help with a template class
 
Hi! I'm trying to make a template class, called SortedList. The name actually says everything about what I want to do with it. So most of it is already working,...
[4 replies] Last: You were right, I didn't need that c int the class, i just deleted tha... (by CivDav)
by ofun
priority queue
 
i made a struct Node { int value; char s; Node *left,*right; }; when i write priority queue<Node> p , it gives me an error 'no match for opera...
[1 reply] : I've never used one of those queues, but I imagine that the queue is s... (by webJose)
by SeBeQ
About pointers
 
void* Func(){ void* local; return local; } This code is safe? local variable is deleted on end of function void* pointer = Func(); //where is the local va...
[5 replies] Last: Also note that void pointers are not typesafe. void pointers and ne... (by Disch)
Doesn't this code example have a bug ???
 
I was looking at the code example for mktime here http://www.cplusplus.com/reference/clibrary/ctime/mktime/ and am not sure this makes sense .... the ...
[1 reply] : I think the localtime() docs can explain. http://www.cplusplus.com/ref... (by Albatross)
Calling values from a function
 
I am trying to get sp, ep and ep-sp+1 values printed using this function. I am able to get only one value printed.Please help to write best way to get these val...
[2 replies] Last: Thank you very much . (by algoqueen)
by nanger
about virtual function in sub-routine
 
class Base { public: virtual void func(){ sub_func();} virtual void sub_func(){ cout<<"base\n";} }; class Deprived: public Base { pub...
[2 replies] Last: Why would it not? sub_func is a virtual function.. To elaborate. W... (by hamsterman)
by TOMyRO
Linker error
 
When i try to compile i get this error : [Linker error] undefined reference to `Functii::sortare(std::vector<persoana, std::allocator<persoana> >)' I have m...
[5 replies] Last: Ah, i see. It seems to be working once i moved the body. I didn't know... (by TOMyRO)
Binary Search Tree delete help
 
So I have been working this for a few days now, approaching deadline really soon, within 24 hours, and the only thing that's not working is the remove function,...
[2 replies] Last: Int he comment: looking for the left child in the tree to remove it, ... (by eurotrashin)
June 2011 Pages: 1... 2021222324... 28
  Archived months: [may2011] [jul2011]

This is an archived page. To post a new message, go to the current page.