C++ Error

Discussion in 'Programming General' started by ryanboyd, Nov 16, 2018.

C++ Error
  1. Unread #1 - Nov 16, 2018 at 6:22 PM
  2. ryanboyd
    Joined:
    May 28, 2016
    Posts:
    463
    Referrals:
    0
    Sythe Gold:
    16
    Discord Unique ID:
    203906109067493377
    Rust Player Dragon Claws Easter 2017 Extreme Homosex Potamus

    ryanboyd Forum Addict
    $25 USD Donor New

    C++ Error

  3. Unread #2 - Nov 16, 2018 at 6:25 PM
  4. ryanboyd
    Joined:
    May 28, 2016
    Posts:
    463
    Referrals:
    0
    Sythe Gold:
    16
    Discord Unique ID:
    203906109067493377
    Rust Player Dragon Claws Easter 2017 Extreme Homosex Potamus

    ryanboyd Forum Addict
    $25 USD Donor New

    C++ Error

    ^ Sypherz likes this.
  5. Unread #3 - Nov 16, 2018 at 7:45 PM
  6. Sypherz
    Joined:
    Dec 13, 2008
    Posts:
    23,745
    Referrals:
    1
    Sythe Gold:
    622
    Discord Unique ID:
    1303476485860098070
    M
    Sythe's 10th Anniversary

    Sypherz Legend
    $5 USD Donor New Retired Sectional Moderator Competition Winner

    C++ Error

    On fight.cpp ranger needs to be swapped with mage on 146 & 150, then on 157 & 160. A good way to find stuff like this is to add cout statements that output the variables at key points. Then you can see where the kink is.

    On an unrelated note you don't need semicolons after non-class or struct definitions, flush your input buffer after cin statements, a lot of your classes would be better as functions (I'd look into what private and public are used for too), the if statement in locchoice() needs a == instead of an = and I would make it a do-while loop instead of an if statement.

    Good luck with your program brother!
     
    Last edited: Nov 16, 2018
  7. Unread #4 - Nov 17, 2018 at 11:35 AM
  8. Moistosaurus
    Joined:
    Nov 17, 2018
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    4

    Moistosaurus Newcomer
    Banned

    C++ Error

    swap 157, 160 and will be fixed
     
< Need someone whose good in Bash (Shell) | >

Users viewing this thread
1 guest


 
 
Adblock breaks this site