i think what my problem was I did not close the file at the end oops lol thanks for your help the problem appears to have gone away
Regards
gda2004
Type: Posts; User: gda2004
i think what my problem was I did not close the file at the end oops lol thanks for your help the problem appears to have gone away
Regards
gda2004
i checked it is returning seven values each time
Regards,
gda2004
while (fscanf(walls, "%f %f %f %f %f %f %f \n",&t,&x,&y,&z,&w,&l,&h)!= EOF)
I did changed it and it still did not work as it should same error
I even removed the \n to make sure it was not that ...
void read()
{
FILE *walls;
if((walls=fopen("walls", "r")) == NULL)
{
printf("Cannot open file\n");
}
while (fscanf(walls, "%f" "%f" "%f" "%f" "%f" "%f" "%f"...
I thought that if you did not write a constructor one would be created that does not have any parameters ??
thank you Laserlight you have helped me alot I have found a Website that has examples of association etc http://ootips.org/uml-hasa.html thanks for your help everyone
thats the one i mean thanks for your help clearing the confusion lol
i mean just to do with objects not linking them lmao sorry for the confusion
to do with linking objects
thanks for your time
Does anyone know where i can find a good Turtorial for Assocation ??? thanks for your time
y can i not have a function declaring the variable radius with int the header named Circle::Circle() ??? i have now watch a video http://www.youtube.com/watch?v=TDRoQcGGH1Y i am getting conflicting...
is this the right place to ask for the radius its in the circle.ccp file
void Circle::setradius(float)
{
printf("please enter the radius of the Circle");
scanf ("%f",&radius);
}
...
thank you !!!! it has helped alot
so in the constructor do u just call the variables that u declared using the main ??
I have looked up a tutorial i would just like to know if this is where u put the code
Circle::Circle(void)
{
printf ("please enter the radius of the circle");
scanf ("%f",&radius);
}
...
cheers for the help has helped me out alot
ok not 100% sure what was ment by that lmao I simple create a new function and pass the info into the variable in Circle.h ??? but do i creat this new function within Cicle.cpp ??
so i pass the information do the variable like i would in a function ???
this is in the .cpp file i am using this so i am trying to set the raduis so i dnt put anything in the get part ??
I have a good idea of what i need to put into the set but the get i am not sure about if anyone would help I would be greatfull
float Circle::getradius()
{
/////????
}
void...
thank you so much you have helped me alot !!!!
thank you for that much apricaited but I know i need one semi colon on the radius but where is the second one to go it alludes me lol
this is circle.h i am just looking for an example of what i should do really for the .cpp file
class Circle
{
private:
float raduis
if anyone can help me i am unsure of what to do after this point
basically i have created the header file
it has all the get and set things
and i have the structure for the .cpp file but i am...