CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: austinm6

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    got this down. thanks!
  2. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    thanks for the tip.
  3. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    'finalff.exe': Loaded 'C:\Users\Austin\Documents\Visual Studio 2010\Projects\finalff\Debug\finalff.exe', Symbols loaded.
    'finalff.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open...
  4. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    you just divide J/K ?
  5. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    idk and debugger does nothing
  6. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    -_-; it's a little different putting it in a program
  7. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    Didn't work. It gives me an answer of 0.


    Mixed operator+(const Mixed& lhs, const Mixed& rhs)
    {

    Mixed a;
    a.numerator = (lhs.numerator*rhs.denominator) + (lhs.numerator*rhs.denominator); ...
  8. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    how do i accomplish this?
  9. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    Still could use some help making this a mixed fraction



    [code]
    Mixed operator+(const Mixed& lhs, const Mixed& rhs)
    {
    Mixed x;
    x.numerator = (lhs.numerator*rhs.denominator)
    +...
  10. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    This is the driver i'm running it against i already have void ToFraction(); implemented and so forth . its the 'friends' that tricked me up on how to implement them


    #include <iostream>
    #include...
  11. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    I don't really understand the way you go about it but is it the same as this? I'm up to here now
    it runs but it wont keep it a mixed fraction. for this part:


    Mixed operator+(const Mixed& lhs,...
  12. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    i think i cracked it haha! I'v only implemented two. hope arithmetic part is part of the same.

    i used this


    bool operator<(const Mixed& lhs, const Mixed& rhs)
    {

    if(lhs.integer <...
  13. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    This help :D?



    #ifndef MIXED_H
    #define MIXED_H

    #include <iostream>
    #include <iomanip>
  14. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    idk thats what i'm asking. i'v been trying for the past couple hours.
  15. Replies
    36
    Views
    4,922

    Re: Implementation of Overloading operators

    Im trying to get the operator function to display that when the user inputs the 2 numbers it says if its < or > and then says if its true or false, that bit in red was just the last thing i tried out...
  16. Replies
    36
    Views
    4,922

    Implementation of Overloading operators

    I'm having difficulty implementing the bool operator in my first cpp file and trying to get it to display the results from the other. I've tried experimenting with a lot of different ways but it ends...
  17. Re: at a loss with overloading opperators

    Just finished thanks to you!!! thank you so much, your advice really helped! 6:35 A.M time for zZzZ
  18. Re: at a loss with overloading opperators

    Everything is there and looks good to the eye, atleast for a novice like me.

    @laser - sent a message let me know! thanks!
  19. [RESOLVED] at a loss with overloading opperators

    friend ostream& operator<<(ostream& ostm, const Mixed& m);
    friend istream& operator>>(istream& istm, Mixed& m);
    friend bool operator<(const Mixed& lhs, const Mixed& rhs);
    friend bool...
  20. Replies
    3
    Views
    900

    Re: Function draw help.

    had no idea it could do that, thank you!
  21. Replies
    3
    Views
    900

    Function draw help.

    #include <iostream>
    #include <cmath>
    #include "diamond.h"

    using namespace std;

    Diamond::Diamond(int s, char b, char f)
    {
    SetSize(s);
    SetBorder(b);
  22. Replies
    2
    Views
    633

    Re: Question about casses

    well whatever these are called, i think i see why. Thank you!
  23. Replies
    2
    Views
    633

    Question about casses

    when do you use these and why, i know i've made some without but never with. ***meant classes in title***

    #ifndef DIAMOND_H
    #define DIAMOND_H
  24. Replies
    8
    Views
    1,249

    Re: Making a Box error in code

    it's supposed to display that btw the i forgot the driver.cpp, i dont know how to post code sorry ><;

    driver.cpp
    #include <iostream>
    #include "box.h"

    using namespace std;
  25. Replies
    8
    Views
    1,249

    Re: Making a Box error in code

    so they should just be deleted?
Results 1 to 25 of 27
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured