Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: problem while casting long to double Pin
Michael Dunn19-May-07 6:18
sitebuilderMichael Dunn19-May-07 6:18 
GeneralRe: problem while casting long to double Pin
Immunity1819-May-07 6:20
Immunity1819-May-07 6:20 
QuestionPrint Preview without printer Pin
shivditya19-May-07 5:30
shivditya19-May-07 5:30 
AnswerRe: Print Preview without printer Pin
Hamid_RT19-May-07 6:47
Hamid_RT19-May-07 6:47 
QuestionRe: Print Preview without printer Pin
shivditya19-May-07 6:59
shivditya19-May-07 6:59 
AnswerRe: Print Preview without printer Pin
Don Fletcher19-May-07 15:12
Don Fletcher19-May-07 15:12 
GeneralRe: Print Preview without printer Pin
shivditya19-May-07 17:43
shivditya19-May-07 17:43 
Questionprogram of find Mode Pin
KARFER19-May-07 3:42
KARFER19-May-07 3:42 
if there is more than one Mode in this program how to show all ( i mean if the mode like 2222 3333 44 the mode here is 3 and 2 how to make it ..
and the code below find one mode and i want the code find more than one mode

<br />
//this code to find Mode in statistic<br />
<br />
int Mode1(int a[],int mode,int freq)<br />
{<br />
  int temp;<br />
  <br />
   mode=a[0];freq=1;temp=1; // assgin first elemnt to mode<br />
                            // freq mean frequencey of mode<br />
   for (int i=2;i<10;i++)<br />
   {<br />
       if (a[i]!=a[i-1])<br />
            temp=1;<br />
        else<br />
            temp=temp +1;<br />
<br />
    if (temp > freq)<br />
        {<br />
           freq=temp   //new frequency<br />
           mode=a[i];   // new mode<br />
       }<br />
    }<br />
}// end of function<br />
<br />


THANK'S FOR ALL ...



To Be Or Not To Be
(KARFER)

AnswerRe: program of find Mode Pin
shivditya19-May-07 5:53
shivditya19-May-07 5:53 
GeneralRe: program of find Mode Pin
KARFER20-May-07 6:11
KARFER20-May-07 6:11 
QuestionAppend a string to another Pin
C_Zealot19-May-07 1:18
C_Zealot19-May-07 1:18 
AnswerRe: Append a string to another Pin
Christian Graus19-May-07 1:51
protectorChristian Graus19-May-07 1:51 
QuestionClistCtrl DoubleClick Hit Column??? Pin
tiflo19-May-07 0:40
tiflo19-May-07 0:40 
AnswerRe: ClistCtrl DoubleClick Hit Column??? Pin
kvrnkiran20-May-07 22:40
kvrnkiran20-May-07 22:40 
QuestionLinkedList Pin
T.RATHA KRISHNAN19-May-07 0:25
T.RATHA KRISHNAN19-May-07 0:25 
AnswerRe: LinkedList Pin
Michael Dunn19-May-07 6:22
sitebuilderMichael Dunn19-May-07 6:22 
QuestionWhy ? Pin
Sofian Teja19-May-07 0:24
Sofian Teja19-May-07 0:24 
AnswerRe: Why ? Pin
OregonGhost19-May-07 0:31
OregonGhost19-May-07 0:31 
AnswerRe: Unexpected compiler behaviour (Why ?) Pin
Moak19-May-07 2:21
Moak19-May-07 2:21 
AnswerRe: Why ? Pin
Michael Dunn19-May-07 6:30
sitebuilderMichael Dunn19-May-07 6:30 
Questionquestion about linked list Pin
ginjikun18-May-07 21:43
ginjikun18-May-07 21:43 
AnswerRe: question about linked list Pin
Manoj Kumar Rai18-May-07 23:44
professionalManoj Kumar Rai18-May-07 23:44 
GeneralRe: question about linked list Pin
ginjikun19-May-07 21:55
ginjikun19-May-07 21:55 
AnswerRe: question about linked list Pin
Moak18-May-07 23:46
Moak18-May-07 23:46 
Questionhow to use GetExitCodeThread Function Pin
neha.agarwal2718-May-07 21:19
neha.agarwal2718-May-07 21:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.