Search:

Type: Posts; User: hod139; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.19 seconds.

  1. Replies
    25
    Views
    1,193

    Re: Benginning C++ Question

    Not quite, the ':' is the delimiter, so it should be:


    export PATH=$PATH:./
  2. Re: sched.h - INIT_TASK(tsk) - kernel programming/syntax question

    The "colon thing" is a gcc extension to the C language (C89 standard anyways) that allows you to use element labels to initialize a union...
  3. Replies
    14
    Views
    10,661

    Re: gcc: invalid initializer

    You are not suppose to touch the internals of fpos_t objects. Doing so instantly makes your code non-portable. You are suppose to use the functions fgetpos and fsetpos, passing a reference of the...
  4. Replies
    4
    Views
    1,000

    Re: pragramming in openGL

    Here's what I did to get your code to compile on my laptop (running hardy)


    sudo apt-get install libglui-dev
    Then I had to change your headers. For some reason ubuntu puts glui.h in...
  5. Replies
    5
    Views
    410

    Re: Is this legal C++?

    I believe your first execution path is the one that gets executed. But again, why not create a temporary local-scope variable to remove all ambiguity?



    auto_array<char>...
  6. Replies
    5
    Views
    410

    Re: Is this legal C++?

    I believe that what you are doing is portable. I think the scope of the tempory object is defined by the output stream's "<<" operator. If you are uncertain, why not introduce a temporary?


    ...
  7. Replies
    4
    Views
    554

    Re: How much extra memory std::vector uses?

    There is very little overhead. For example, comparing the memory usage between:



    #include <unistd.h> // sleep is declared here

    class AClass
    {
    public:
    AClass(int n){
  8. Replies
    4
    Views
    595

    Re: Lambda expressions for C

    Lambda expressions are coming to C++: http://www.boost.org/doc/libs/1_39_0/doc/html/lambda.html
    http://en.wikipedia.org/wiki/C%2B%2B0x#Lambda_functions_and_expressions
  9. Replies
    5
    Views
    2,142

    Re: [C++] methods template specialization

    You will have to do something like:


    template <typename T, int N>
    class MyClass
    {
    public:
    inline void method() { /* code */ };
    };
  10. Replies
    5
    Views
    2,142

    Re: [C++] methods template specialization

    I think method specializations have to be based off of the classes templated parameters (but I could be wrong). In any case, a workaround for what you want to do would be to introduce a templated...
  11. Replies
    89
    Views
    213,458

    Re: Installing and setting up Eclipse with Sun's Java

    If you haven't already, I would suggest posting your question in the programming talk forum.
  12. Replies
    3
    Views
    9,248

    Re: C++ Fitting / interpolation libraries

    For a C solution, you can check out the gnu scientific library: http://www.gnu.org/software/gsl/ (it's also in the repository)
  13. Replies
    2
    Views
    315

    Re: Need help with a short & simple C function

    http://ubuntuforums.org/showthread.php?t=296142
  14. Replies
    8
    Views
    515

    Re: Book Suggestions

    I recommend Neal Stephenson's Cryptonomicon. I prefer to buy books for pleasure, not work. You can always borrow reference books or find good online free references.If you are insisting on...
  15. Re: 3D Python Example (vectors, quaternions, model loading, etc.)

    An alternative to ODE is Bullet: http://www.bulletphysics.com
    For example, blender is now using Bullet for all its collision detection and simulation needs.

    ODE and Blender both use similar...
  16. Replies
    22
    Views
    1,053

    Re: Dynamic Multidimension array?

    removed duplicate post
  17. Replies
    22
    Views
    1,053

    Re: Dynamic Multidimension array?

    lots of double posts
  18. Replies
    22
    Views
    1,053

    Re: Dynamic Multidimension array?

    double post
  19. Replies
    22
    Views
    1,053

    Re: Dynamic Multidimension array?

    I'm not sure what your level of knowledge is, but STL vectors incur minimal overhead over C style arrays (especially when optimizations are enabled), and the added benefits significantly outway any...
  20. Replies
    22
    Views
    1,053

    Re: Dynamic Multidimension array?

    First step is to know what you need.

    I would always suggest using STL vectors instead of C style arrays, so I don't know what you mean here. For an example:



    template <typename T>
    class...
  21. Thread: Automake

    by hod139
    Replies
    5
    Views
    489

    Re: Automake

    Can I suggest an alternative to automake, cmake.
  22. Replies
    3
    Views
    798

    Re: Linear Programming: Scheduler

    I'm still not understanding what you are looking for. Here is a solution for a simple linear program related to your post, written in AMPL.

    foo.mod:


    param Demand{1..2};
    var X{1..4};

    ##...
  23. Replies
    3
    Views
    798

    Re: Linear Programming: Scheduler

    I'm not exactly sure what you are asking. Are you looking for a language to model the problem in? If so, the two popular modeling languages are AMPL and GAMS. If you want to actually solve these...
  24. Replies
    7
    Views
    776

    Re: C++ passing pointers by reference.

    You have a mis-understanding with your point 2. Passing a pointer by value will pass a copy of that pointer. The temp/copied pointer will still point to the object so usually there is no...
  25. Re: trouble setting up MinGW with SDL_gfx for crosscompiling

    A quick google search landed me here:
    http://www.gamedev.net/community/forums/topic.asp?topic_id=396932

    Does that help you?
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4