Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,323 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,106 people online right now. Registration is fast and FREE... Join Now!




find second highest in an array without sorting

 
Reply to this topicStart new topic

find second highest in an array without sorting

Vvivek786
post 16 Feb, 2008 - 08:36 PM
Post #1


New D.I.C Head

*
Joined: 16 Feb, 2008
Posts: 6

plz give me the code fast
User is offlineProfile CardPM

Go to the top of the page

KYA
post 16 Feb, 2008 - 08:46 PM
Post #2


#include <nerd.h>

Group Icon
Joined: 14 Sep, 2007
Posts: 4,205



Thanked 50 times

Dream Kudos: 1150
My Contributions


QUOTE(Vvivek786 @ 16 Feb, 2008 - 10:36 PM) *

plz give me the code fast


We need to see a 'good faith effort' on your part before assisting. There are several ways to see which is the 2nd highest w/o sorting.

--kya
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 16 Feb, 2008 - 08:53 PM
Post #3


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,923



Thanked 118 times

Dream Kudos: 8475

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks smile.gif
User is offlineProfile CardPM

Go to the top of the page

Vvivek786
post 16 Feb, 2008 - 09:05 PM
Post #4


New D.I.C Head

*
Joined: 16 Feb, 2008
Posts: 6

QUOTE(PsychoCoder @ 16 Feb, 2008 - 09:53 PM) *

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks smile.gif
hey just tell me the logic i m not getting how to start
User is offlineProfile CardPM

Go to the top of the page

letthecolorsrumble
post 17 Feb, 2008 - 04:18 AM
Post #5


Student of The Sun

Group Icon
Joined: 7 Nov, 2007
Posts: 550



Thanked 1 times
My Contributions


QUOTE(Vvivek786 @ 16 Feb, 2008 - 10:05 PM) *

QUOTE(PsychoCoder @ 16 Feb, 2008 - 09:53 PM) *

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks smile.gif
hey just tell me the logic i m not getting how to start



Set the first value of the array as maximum, then compare each value with maximum, if greater than maximum, store in maximum. If not, keep doing the same.
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/22/08 02:39AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month