your rightt!....that makes sense...thanks man!!
Type: Posts; User: paret
your rightt!....that makes sense...thanks man!!
that actualy is how i worte it in the code, when i wrote it above, i accidently put in the extrat struct TWO*...and if that is the proper procedure, then cleary the problem is somewhere else..
heres the exact flow control of my program (simplified)..hopefully someone can see what i am doing wrong..
struct Gemstone* gem;
main(){
construct_gem(gem);
initialize_gem(gem);...
Day #8 now of trying to figure this out...im debating on giving up programming for good.....ive tried to rewrite this program 101 ways now,including your solution quzah and im still in the same place...
I am experiencing problems with a program that involves alot of structures and pointers, i think i have narrowed my problem down to an issue with ether assigning or referencing struct memebers...
...
yes I tried quzahs suggestion and nothing changed..i think i narrowed it down to a problem with defrefercing a struct pointer to struct pointer...
im trying to fill the value of gem_p->position->x...
can anyone offer any other solution?..PLEASE! im desperate, its been a week now, and i still havent resolved this problem
ok, so i figured out how to incorporate a printf into my code, and its giving me the same thing as the debugger
the only issue with that, is this is all graphics and drawings of simple polygons, print statments actually dont work, so i use a debugger with a breakpoint in that location to read the values of x...
i appologize if im confusing you guys, the code segments are just small segments of a very large project that consists of several files...the details of the actual program, im not sure are...
ya the struct for point was in a different header file, so when i did my reply i just through that in
..and when you say print them first, do you mean before the call to init_gemston()?
heres one of my header files with the stuct for gem_p
#ifndef _UOW_GEMSTONE_H
#define _UOW_GEMSTONE_H
#include "uow_graphics.h"
#include "drawing.h"
#include "board.h"
#include <cmath>
Ive been trying to debug this peice of code for a couple days now, no matter what I try I continue to have the same problem..im trying to pass several arguments of different types from one function...
there is no output from the debugger, it runs the program as it supposed to..im trying to draw a picture of a gemstone on a background (for a classics pacman game)..im assuming it is still drawing...
SORRY, I had to repost it because I changed part of the code for debugging perposes, heres the code in original form
#include "gemstone.h"
#include "board.h"
bool draw_gemstones(struct...
Ya thats what I thought at first, but I dont see how that can be when Im passing the actual numbers 0 and 1, and also the size (0.5) is being passed properly.. heres the entire code..
#include...
I am having problem with a small code segment,the segment is part of a large project, everything else workd properly and this problem appears to be issolated..i am trying to pass two integer values...