Is there any good tutorial on how to use these instructions for better performance?
Type: Posts; User: grepawksed
Is there any good tutorial on how to use these instructions for better performance?
Btw, can I skip the const? Even if it's better to have itperhaps.
Ah, great, it worked. Very big thank you!
Does your version also work if the class X is abstract?
It turns out that X is abstract and that the values of two X objects are calculated by the function
class X{
virtual int...
Is it not possible to do without the extra class?
Hi.
I have a vector with pointers to objects (vector<X*> ) that I would like to sort.
How can I do that with the sort that is in the STL algorithm package?
vector<X*> v;...
I think the clear() part solved it! Great! Thank you!
Now, what difference is it when I put the getline in the while loop? In what way is your suggestion better?
I do this
ifstream codefin;
ofstream codefout;
while (not_annoyed)
{
codefout.open("bar");
Here is a nice book and you will learn how to make platformindependent progarms.
http://www.phptr.com/content/images/0131240722/downloads/blanchette_book.pdf
Hi.
I need to parse math expressions!
I need to build a tree with objects that represents the way the expression is evaluated. Tree nodes can be numbers, operators or variables.
Is there an easy...
Here is the problem!
int main()
{
A a;
B b;
foo(&a,&a)->Print();
foo(&a,&b)->Print();
}
Thanks, I look more into those examples.
I have no code, I want to know how to write the code before starting :-)
The problem is: how can the program know if I a C pointer points to a dynamicaly created A or B object?
Hi.
I want to create an abstract class C and subclasses A and B (they both inherit from C) and then I want to have a function called "foo" with the following definitions
C* foo(A* x, A* y);...