web analytics

Computer Programming Curricula

computer programming curricula
computer programming curricula
Please help me Turbo C programming. ?

I can not do things properly. the problem of the machine is ready, Example, I entered a lot of numbers like 122233344444566666666. then the output goes to say the mode is 6 and the frequency is 8. So what I It's like counting program alphabet in which the number of key presses, but do not know how to display the mode and frequency. can you if you please give me a sample code. T____T I'm not good at programming, because I'm not a top team. I am a marketing student at a programming problem computer. It is true. I wonder why we have in our program. anyway, please help me with my programming problem.

Not tested, not compiled. # Include # Include int main () (inpBuf char [1000], char * cp, int i, int cnt [10], int modeClass; gets (inpBuf) cp = inpBuf / * address * The numbers of single-digit figures / memset (cnt, 0, sizeof (CNT)), while (Cp * 0 =! ") (if (isdigit (* Cp)) (cp [* cnt - 0']++;)) * Support / one class that * 'mode' when / modeClass = 0; for (i = 1, i <10; i + +) (If (] cnt [modeClass <Cnt [i]) (ModeClass = i;)) printf ("mode:% d, freq:% d", modeClass [modeClass] cnt) return 0;)

One Response to “Computer Programming Curricula”

  1. [...] Computer Programming Curricula [...]

Leave a Reply