Search:

Type: Posts; User: grepawksed

Search: Search took 0.01 seconds.

  1. tutorial for mmx/sse/3dnow etc programming

    Is there any good tutorial on how to use these instructions for better performance?
  2. Replies
    9
    Views
    1,471

    Btw, can I skip the const? Even if it's better...

    Btw, can I skip the const? Even if it's better to have itperhaps.
  3. Replies
    9
    Views
    1,471

    Ah, great, it worked. Very big thank you!

    Ah, great, it worked. Very big thank you!
  4. Replies
    9
    Views
    1,471

    Does your version also work if the class X is...

    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...
  5. Replies
    9
    Views
    1,471

    Is it not possible to do without the extra class?

    Is it not possible to do without the extra class?
  6. Replies
    9
    Views
    1,471

    Algorithm and sort

    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;...
  7. Replies
    3
    Views
    1,129

    I think the clear() part solved it! Great! Thank...

    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?
  8. Replies
    3
    Views
    1,129

    in what position is a file opened?

    I do this



    ifstream codefin;
    ofstream codefout;

    while (not_annoyed)
    {
    codefout.open("bar");
  9. Replies
    12
    Views
    4,662

    Why not try Qt?

    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
  10. Thread: Math parser

    by grepawksed
    Replies
    1
    Views
    1,483

    Math parser

    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...
  11. Here is the problem! int main() { A a;...

    Here is the problem!


    int main()
    {
    A a;
    B b;
    foo(&a,&a)->Print();
    foo(&a,&b)->Print();
    }
  12. Thanks, I look more into those examples. I have...

    Thanks, I look more into those examples.
    I have no code, I want to know how to write the code before starting :-)
  13. The problem is: how can the program know if I a...

    The problem is: how can the program know if I a C pointer points to a dynamicaly created A or B object?
  14. How do make a difference between inherited classes for functions?

    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);...
Results 1 to 14 of 14