Search:

Type: Posts; User: dr$brown

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,259

    right. works perfect. thanks swoopy!

    right. works perfect.
    thanks swoopy!
  2. Replies
    6
    Views
    1,259

    ergebnis =...

    ergebnis = findeSzenenGraphKnoten(wurzelzeiger->kind,rest_string+1);
    free(rest_string);
    free(sub_string);
    return ergebnis;


    this seems to do the job!

    thanks a...
  3. Replies
    6
    Views
    1,259

    URGENT! problem with [free()]

    hello

    this has to work in about an hour :O!




    pSzenenGraph
    findeSzenenGraphKnoten(pSzenenGraph wurzelzeiger, char* objektname){
    char* sub_string = malloc(strlen(objektname));
  4. Replies
    8
    Views
    5,557

    thanks guys. i found out myself. i forgot to...

    thanks guys. i found out myself.
    i forgot to include "vectorOperations.h"...
    hmpf!

    sorry to bother with such a beginner problem
    ;)
  5. Replies
    8
    Views
    5,557

    >>Well I would assume you would pick the right...

    >>Well I would assume you would pick the right type for the pointer.
    i did!


    pKoerper *bar = wurzelzeiger->objekt.p_koerper;
  6. Replies
    8
    Views
    5,557

    thank you for your answer salem. the problem is,...

    thank you for your answer salem.
    the problem is, i cannot initialize a variable *bar like you did. i get:


    [Warning] initialization from incompatible pointer type

    i tried not to hide my...
  7. Replies
    8
    Views
    5,557

    invalid initializer

    hello!

    i declared these types:



    typedef struct fVector2D {
    float x;
    float y;
    }tVector2D;
  8. Replies
    6
    Views
    1,669

    so far i have no initialization for the pointer,...

    so far i have no initialization for the pointer, but even using a struct it doesnt work.
    what is >>Hiding pointers<< ?
  9. Replies
    6
    Views
    1,669

    sorry, here it is: typedef tKoerper...

    sorry, here it is:


    typedef tKoerper *pKoerper;

    typedef struct objekt {
    ...
    pKoerper koerper;
    ...
    }tObjekt;
  10. Replies
    6
    Views
    1,669

    typedef problem

    hi everyone!

    what is wrong with this declaration?:



    enum tKoerperart { einfach, komplex };
    enum tGeometrie { wuerfel, kugel, zylinder, kegel, tetraeder };
    ...
    typedef struct koerper{
  11. Replies
    2
    Views
    1,143

    great, this seemes to solve the problem. thanks...

    great, this seemes to solve the problem.
    thanks a lot.
  12. Replies
    2
    Views
    1,143

    type declaration - dereferencing prob

    hi!

    this is my declaration:


    enum tKoerperart { einfach, komplex };
    enum tGeometrie { wuerfel, kugel, zylinder, kegel };
    ...
    typedef struct koerper{
    enum tKoerperart art;
  13. Replies
    6
    Views
    4,692

    thanks!

    thanks!
  14. Replies
    6
    Views
    4,692

    ok. and how do i initialize it correctly?

    ok. and how do i initialize it correctly?
  15. Replies
    6
    Views
    4,692

    segmentation fault using memcpy

    hi

    im trying to browse a tree-structure within my prog. the function i implemented to do this gets a treepointer and a path and returns a node-pointer. with the first call everything is fine, but...
Results 1 to 15 of 15