Search:

Type: Posts; User: nempo

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,214

    Cheers for the help and clearing things up.

    Cheers for the help and clearing things up.
  2. Replies
    6
    Views
    2,214

    Half-figured it out, seems that I had used the...

    Half-figured it out, seems that I had used the BEGIN and END macros on class constructors. And this somehow caused a few problems.
    Are the class constructors executed before the 'main' function...
  3. Replies
    6
    Views
    2,214

    Right, guess my example wasn't very error-prone,...

    Right, guess my example wasn't very error-prone, the problem might not lie in the macros them self I guess, but instead of something else interacting with the macros in some unexpected way. I need to...
  4. Replies
    6
    Views
    2,214

    Pre-processor macros causing segfaults

    Hello,

    so, I'm playing around with pre-processor macros, and I've come across behaviour I can't quite figure out. I've written these macros to trace the execution path of my program, problem is,...
  5. Replies
    1
    Views
    3,368

    I apparently some way along the way made the...

    I apparently some way along the way made the assumption that GL_RGB mapped to '3', which it obviously didn't, so instead of the 'bytesperpixel', I just had to use GL_RGB instead.

    Must take note...
  6. Replies
    1
    Views
    3,368

    OpenGL texture mapping with texCoordArray

    So I'm trying to work out how texture mapping with a texture coordinate array works, but whatever I seem to do I only get a white quad instead of a textured quad.

    This is a modified texture...
  7. Replies
    3
    Views
    1,240

    Cheers!

    Cheers!
  8. Replies
    3
    Views
    1,240

    Recursive Includes

    Hello, I'm trying to implement a sort of callback object, but having some trouble with a recursive include problem, to demonstrate:


    #ifndef TEST1_HPP_
    #define TEST1_HPP_

    #include "test2.hpp"...
  9. Replies
    3
    Views
    11,698

    Copying a binary tree.

    I'm trying to implement a tree and I would like to have some way to make a deep copy of the trees, but I can't seem to make it work.

    I have a base class 'Node' from which two other classes inherit...
  10. Replies
    2
    Views
    2,039

    High resolution clock.

    I was wondering if anyone had any high resolution clock resources laying around? API explenation and maybe some tutorial.

    Thanks.
  11. Replies
    19
    Views
    2,254

    True, but this looks a bit more clean imo. :>. ...

    True, but this looks a bit more clean imo. :>.

    EDIT: my suggestion that is :>.
  12. Replies
    19
    Views
    2,254

    I thought I'd divide the arguments into key/value...

    I thought I'd divide the arguments into key/value pairs, where the seperator is a '=', arguments without assigned values (ie. no '=') would become a key where the value is an empty string. Other then...
  13. Replies
    19
    Views
    2,254

    The idea was to 'abstract away' the handling of...

    The idea was to 'abstract away' the handling of the arguments, if that makes any sense.
  14. Replies
    19
    Views
    2,254

    I should have added that the posted code dosn't...

    I should have added that the posted code dosn't work either, it was just how I 'visioned' it.

    I settled on something like this instead, skipping the whole class thing:



    extern int Main(const...
  15. Replies
    19
    Views
    2,254

    The real reason I asked this was because I would...

    The real reason I asked this was because I would like to replace the standard main function:



    int main(int *args, char *argv[]) {
    return 0;
    }


    with something like this:
  16. Replies
    19
    Views
    2,254

    prototyping a class

    Hello,

    I was wondering if it's possible to do something like this in c++, ie. prototype a class:



    class ClassName;

    int main() {
    ClassName test;
  17. Replies
    6
    Views
    1,095

    Not sure if I got the psuedo in the original post...

    Not sure if I got the psuedo in the original post correct, anyway, here's some code that dosn't compile:


    #include <stdio.h>

    template <typename T>
    class A {
    public:
    char *operator[]...
  18. Replies
    6
    Views
    1,095

    An abstract datatype, a class, but I get the same...

    An abstract datatype, a class, but I get the same result with any other type.

    EDIT: hmm, very wierd, made a test program with the bare minimum and everything works dandy, must be something else...
  19. Replies
    6
    Views
    1,095

    Inheritence and operator[]

    Hello, slight problem here.

    I have two classes which look kinda like this:



    class A {
    ...

    public:
  20. hmz, could have sworn that doing something like...

    hmz, could have sworn that doing something like that was allowed. Must have made a wrong assumption somewhere along the road.

    Thanks.

    Another question, how do you prevent the index generated...
  21. I thought I was doing that in the Insert(...)...

    I thought I was doing that in the Insert(...) function.
  22. Error when trying to implement a hash table class

    Hello again,

    I started writing a few lines of code and caught myself think 'Wow, hash tables are pretty nice, easy to write (havn't attacked index collision yet though.) and generally very cool...
  23. Replies
    5
    Views
    2,318

    Google for 'speex'

    Google for 'speex'
  24. Replies
    23
    Views
    4,791

    Strings are fine, except I want it to return a...

    Strings are fine, except I want it to return a char *.
  25. Replies
    23
    Views
    4,791

    g++ seems to think so atleast: $ g++...

    g++ seems to think so atleast:


    $ g++ test.cpp
    test.cpp: In function ‘int main()’:
    test.cpp:6: error: invalid operands of types ‘char*’ and ‘char*’ to binary ‘operator+’
Results 1 to 25 of 39
Page 1 of 2 1 2