right. works perfect.
thanks swoopy!
Type: Posts; User: dr$brown
right. works perfect.
thanks swoopy!
ergebnis = findeSzenenGraphKnoten(wurzelzeiger->kind,rest_string+1);
free(rest_string);
free(sub_string);
return ergebnis;
this seems to do the job!
thanks a...
hello
this has to work in about an hour :O!
pSzenenGraph
findeSzenenGraphKnoten(pSzenenGraph wurzelzeiger, char* objektname){
char* sub_string = malloc(strlen(objektname));
thanks guys. i found out myself.
i forgot to include "vectorOperations.h"...
hmpf!
sorry to bother with such a beginner problem
;)
>>Well I would assume you would pick the right type for the pointer.
i did!
pKoerper *bar = wurzelzeiger->objekt.p_koerper;
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...
hello!
i declared these types:
typedef struct fVector2D {
float x;
float y;
}tVector2D;
so far i have no initialization for the pointer, but even using a struct it doesnt work.
what is >>Hiding pointers<< ?
sorry, here it is:
typedef tKoerper *pKoerper;
typedef struct objekt {
...
pKoerper koerper;
...
}tObjekt;
hi everyone!
what is wrong with this declaration?:
enum tKoerperart { einfach, komplex };
enum tGeometrie { wuerfel, kugel, zylinder, kegel, tetraeder };
...
typedef struct koerper{
great, this seemes to solve the problem.
thanks a lot.
hi!
this is my declaration:
enum tKoerperart { einfach, komplex };
enum tGeometrie { wuerfel, kugel, zylinder, kegel };
...
typedef struct koerper{
enum tKoerperart art;
thanks!
ok. and how do i initialize it correctly?
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...