JavaScript is required to use Bungie.net

Service Alert
Destiny 2 will be temporarily offline today for scheduled maintenance. Please stay tuned to @BungieHelp for updates.

OffTopic

Surf a Flood of random discussion.
10/5/2012 3:55:09 AM
59

Can anyone help with basic C++ stuff?

I haven't posted in a while, and I don't even know if I'm allowed to ask, but I need some help with debugging my simple programming stuff. If you're willing I can inbox you the code. If not just don't post because flamers aren't cool
English
#Offtopic #Flood

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
  • [quote][b]Posted by:[/b] Razgriz Berkut Whenever there is a bigger number than largest, then you update larger to what largest is. Then you set largest to what number is.[/quote] This. Costly Axis explained it pretty well, I think: [quote]When you set your new largest value, you need to then also update the second largest value to the previously largest number. This is because if the largest value was dwarfed, then so too was the second largest one by the previous largest value.[/quote] All I added was the one line of code to do this (and the braces since there are now two statements).

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon