Search:

Type: Posts; User: gda2004

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    1,284

    i think what my problem was I did not close the...

    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
  2. Replies
    9
    Views
    1,284

    i checked it is returning seven values each time ...

    i checked it is returning seven values each time

    Regards,

    gda2004
  3. Replies
    9
    Views
    1,284

    it

    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 ...
  4. Replies
    9
    Views
    1,284

    FscanF Program falls over

    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"...
  5. Replies
    3
    Views
    4,355

    I thought that if you did not write a constructor...

    I thought that if you did not write a constructor one would be created that does not have any parameters ??
  6. Thread: Association ??

    by gda2004
    Replies
    8
    Views
    1,563

    thank you Laserlight you have helped me alot I...

    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
  7. Thread: Association ??

    by gda2004
    Replies
    8
    Views
    1,563

    thats the one i mean thanks for your help...

    thats the one i mean thanks for your help clearing the confusion lol
  8. Thread: Association ??

    by gda2004
    Replies
    8
    Views
    1,563

    i mean just to do with objects not linking them...

    i mean just to do with objects not linking them lmao sorry for the confusion
  9. Thread: Association ??

    by gda2004
    Replies
    8
    Views
    1,563

    to do with linking objects thanks for your time

    to do with linking objects
    thanks for your time
  10. Thread: Association ??

    by gda2004
    Replies
    8
    Views
    1,563

    Association ??

    Does anyone know where i can find a good Turtorial for Assocation ??? thanks for your time
  11. Replies
    29
    Views
    2,332

    y can i not have a function declaring the...

    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...
  12. Replies
    29
    Views
    2,332

    is this the right place to ask for the radius its...

    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);
    }
    ...
  13. Replies
    29
    Views
    2,332

    thank you !!!! it has helped alot

    thank you !!!! it has helped alot
  14. Replies
    29
    Views
    2,332

    so in the constructor do u just call the...

    so in the constructor do u just call the variables that u declared using the main ??
  15. Replies
    29
    Views
    2,332

    I have looked up a tutorial i would just like to...

    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);
    }
    ...
  16. Replies
    29
    Views
    2,332

    cheers for the help has helped me out alot

    cheers for the help has helped me out alot
  17. Replies
    29
    Views
    2,332

    ok not 100% sure what was ment by that lmao I...

    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 ??
  18. Replies
    29
    Views
    2,332

    so i pass the information do the variable like i...

    so i pass the information do the variable like i would in a function ???
  19. Replies
    29
    Views
    2,332

    this is in the .cpp file i am using this so i am...

    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 ??
  20. Replies
    29
    Views
    2,332

    get and set ???

    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...
  21. Thread: Classes

    by gda2004
    Replies
    6
    Views
    1,046

    thank you so much you have helped me alot !!!!

    thank you so much you have helped me alot !!!!
  22. Thread: Classes

    by gda2004
    Replies
    6
    Views
    1,046

    thank you for that much apricaited but I know i...

    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
  23. Thread: Classes

    by gda2004
    Replies
    6
    Views
    1,046

    this is circle.h i am just looking for an example...

    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
  24. Thread: Classes

    by gda2004
    Replies
    6
    Views
    1,046

    Classes

    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...
Results 1 to 24 of 24