You are viewing our Forum Archives. To view or take place in current topics click here.
#21. Posted:
-Patman
  • TTG Master
Status: Offline
Joined: Jun 29, 201014Year Member
Posts: 823
Reputation Power: 34
Status: Offline
Joined: Jun 29, 201014Year Member
Posts: 823
Reputation Power: 34
it compiles correctly but gives the wrong answer
#22. Posted:
YouAlwaysWinOk
  • Resident Elite
Status: Offline
Joined: Jan 23, 201311Year Member
Posts: 215
Reputation Power: 10
Status: Offline
Joined: Jan 23, 201311Year Member
Posts: 215
Reputation Power: 10
Which course are you taking?
#23. Posted:
Imp
  • Retired Staff
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
-Patman wrote it compiles correctly but gives the wrong answer


Hmm, The logic seems sound.... what answer does it give?
#24. Posted:
-Patman
  • TTG Master
Status: Offline
Joined: Jun 29, 201014Year Member
Posts: 823
Reputation Power: 34
Status: Offline
Joined: Jun 29, 201014Year Member
Posts: 823
Reputation Power: 34
@Imp

Nevermind I fixed it. I forgot to put in the check to see if C was greater than largest in the first place. *facepalm*. It works perfectly now and I can't thank you enough!
#25. Posted:
Imp
  • Shoutbox Hero
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
-Patman wrote @Imp

Nevermind I fixed it. I forgot to put in the check to see if C was greater than largest in the first place. *facepalm*. It works perfectly now and I can't thank you enough!


Cool, no problem, glad to be of service
#26. Posted:
NsM_o_R3V3NGE
  • Resident Elite
Status: Offline
Joined: Dec 27, 201013Year Member
Posts: 215
Reputation Power: 8
Status: Offline
Joined: Dec 27, 201013Year Member
Posts: 215
Reputation Power: 8
It may be more effective to use a for loop that loops through a multidimentional array, sorry if you do have a multi d array im in a hurry and looked at your code in like 2 secs
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.