Adblock breaks this site

C++ Error

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

  1. ryanboyd

    ryanboyd Forum Addict
    $25 USD Donor New

    Joined:
    May 28, 2016
    Posts:
    463
    Referrals:
    0
    Sythe Gold:
    16
    Discord Unique ID:
    203906109067493377
    Rust Player Dragon Claws Easter 2017 Extreme Homosex Potamus
    C++ Error

  2. ryanboyd

    ryanboyd Forum Addict
    $25 USD Donor New

    Joined:
    May 28, 2016
    Posts:
    463
    Referrals:
    0
    Sythe Gold:
    16
    Discord Unique ID:
    203906109067493377
    Rust Player Dragon Claws Easter 2017 Extreme Homosex Potamus
    C++ Error

    Sypherz likes this.
  3. Sypherz

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

    Joined:
    Dec 13, 2008
    Posts:
    23,745
    Referrals:
    1
    Sythe Gold:
    622
    Discord Unique ID:
    1303476485860098070
    M
    Sythe's 10th Anniversary
    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
  4. Moistosaurus

    Moistosaurus Newcomer
    Banned

    Joined:
    Nov 17, 2018
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    4
    C++ Error

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


 
 
Adblock breaks this site