Search:

Type: Posts; User: johnnyg

Search: Search took 0.00 seconds.

  1. Replies
    22
    Views
    5,274

    well i have to leave to turn it in now but the...

    well i have to leave to turn it in now but the problem was the var's arnt being set by the user input and are just returning garbage.
  2. Replies
    22
    Views
    5,274

    they give me the same two errors sorry -_-

    they give me the same two errors
    sorry -_-
  3. Replies
    22
    Views
    5,274

    your constructor gives me 2 errors: ...

    your constructor gives me 2 errors:

    .\Rectangle.cpp(4) : error C2572: 'Rectangle::Rectangle' : redefinition of default parameter : parameter 2
    c:\documents and settings\johnnyg\my...
  4. Replies
    22
    Views
    5,274

    forget the loop any idea why the functions wont...

    forget the loop any idea why the functions wont take the numbers and they are producing garbage?
  5. Replies
    22
    Views
    5,274

    made the change but its still an endless loop...

    made the change but its still an endless loop /sigh
  6. Replies
    22
    Views
    5,274

    tried it again after adding the ifndef and it...

    tried it again after adding the ifndef and it compiles but.

    the values enter by the user are not making it to the cpp of rectangle/cube. its producing garbage as the length and witdth and height....
  7. Replies
    22
    Views
    5,274

    i normally code that into all my headers but ...

    i normally code that into all my headers but this was given out of the assignment sheet so i didnt and i coded those in look:


    #ifndef CUBE_H
    #define CUBE_H
    class Cube : public Rectangle
    {
    ...
  8. Replies
    22
    Views
    5,274

    checked it but still didnt fix it :(

    checked it but still didnt fix it :(
  9. Replies
    22
    Views
    5,274

    nice that fixed error #2 but it still doesnt...

    nice that fixed error #2 but it still doesnt recogonize the base class
  10. Replies
    22
    Views
    5,274

    its not huge. ill post the remaining files...

    its not huge. ill post the remaining files
    rectangle.cpp:


    #include "Rectangle.h"

    Rectangle::Rectangle(double length, double width)
    {
    length=0.0;
    width=0.0;
  11. Replies
    22
    Views
    5,274

    i tried that in the cube.h and it caused 11 more...

    i tried that in the cube.h and it caused 11 more errors... the class i was given by my instructor i thought it was right but...i dono im out of ideas
  12. Replies
    22
    Views
    5,274

    2 errors in my code

    i got a project due tomorrow dealing with inheritence and i seem to have hit a brick wall. the errors are:

    c:\documents and settings\johnnyg\my documents\visual studio 2005\projects\project...
  13. Replies
    11
    Views
    1,283

    its like friend operator+ ();?

    its like
    friend operator+ ();?
  14. Replies
    11
    Views
    1,283

    overloading the + operator

    hi im learning about overloading operators in my class and i dont really understand it. anyways i got an assignment to overload the + operator so i can add two strings togther into a third string and...
  15. Replies
    6
    Views
    1,285

    project is finished thanks for the help

    project is finished thanks for the help
  16. Replies
    6
    Views
    1,285

    calling the function the first time updates the...

    calling the function the first time updates the total number of employees of that kind and calculates the weekly salary

    the setw(5) was suppose to creat a space inbetween the text

    yea i know...
  17. Replies
    6
    Views
    1,285

    thanks for the quick responses and as for the...

    thanks for the quick responses and as for the functions being called twice... the function returns a number andim calling it the 2nd time just to print that number

    also after trying that advice i...
  18. Replies
    6
    Views
    1,285

    reading in from files

    im reading in from a txt file that looks like this:
    4 6.75 120 4444
    1 1200.00 1111
    3 10000.00 3333
    2 12.50 50 2222
    -1

    and bassically im trying to just read in one number at a time however im...
  19. thank you that worked great i really aprciate it

    thank you that worked great i really aprciate it
  20. question about using a string as a file location

    hi i've never posted here before but ive got a problem and none of my friends could help me figure it out. basically i have a variable called fileloc, its a string entered by the user. my problem...
Results 1 to 20 of 20