Click here to Skip to main content
15,907,233 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBuilding DLL Pin
cbrack66614-Mar-07 13:47
cbrack66614-Mar-07 13:47 
QuestionCScrollView doesn't respond to mousewheel or keyboard Pin
SeniorBob14-Mar-07 13:22
SeniorBob14-Mar-07 13:22 
Questionim just learning to prgram and have troubleing starting this question Pin
bigtimer102214-Mar-07 12:32
bigtimer102214-Mar-07 12:32 
AnswerRe: im just learning to prgram and have troubleing starting this question Pin
Bram van Kampen14-Mar-07 16:30
Bram van Kampen14-Mar-07 16:30 
AnswerRe: im just learning to prgram and have troubleing starting this question Pin
_AnsHUMAN_ 14-Mar-07 18:52
_AnsHUMAN_ 14-Mar-07 18:52 
GeneralRe: im just learning to prgram and have troubleing starting this question Pin
bigtimer102214-Mar-07 18:54
bigtimer102214-Mar-07 18:54 
GeneralRe: im just learning to prgram and have troubleing starting this question Pin
_AnsHUMAN_ 14-Mar-07 19:03
_AnsHUMAN_ 14-Mar-07 19:03 
GeneralRe: im just learning to prgram and have troubleing starting this question Pin
bigtimer102214-Mar-07 19:03
bigtimer102214-Mar-07 19:03 
i think it right im just checking...
and i did copy it and paste it right...


#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;

int n, temp, count0 = 0, count1 = 0, count2 = 0, count3 = 0, count4 = 0, count5 = 0, count6 = 0, count7 = 0, count8 = 0, count9 = 0;

int main()
{
cout << "Enter the number to be evaluated." << endl;
cin >> temp;
while (temp != 0){
n=temp%10;
switch(n){
case 0: count0++;
break;
case 1: count1++;
break;
case 2: count2++;
break;
case 3: count3++;
break;
case 4: count4++;
break;
case 5: count5++;
break;
case 6: count6++;
break;
case 7: count7++;
break;
case 8: count8++;
break;
case 9: count9++;
break;
}
temp = temp / 10;

}
cout << " Answer is " << endl;
if(count0>0)
cout<< "0" << " " << count0 << endl;
if(count1>0)
cout<< "1" << " " << count1 << endl;
if(count2>0)
cout<< "2" << " " << count2 << endl;
if(count3>0)
cout<< "3" << " " << count3 << endl;
if(count4>0)
cout<< "4" << " " << count4 << endl;
if(count5>0)
cout<< "5" << " " << count5 << endl;
if(count6>0)
cout<< "6" << " " << count6 << endl;
if(count7>0)
cout<< "7" << " " << count7 << endl;
if(count8>0)
cout<< "8" << " " << count8 << endl;
if(count9>0)
cout<< "9" << " " << count9 << endl;

return 0 ;
}
QuestionSimple Problem? Blind Author cant see? Pin
LeighRogers14-Mar-07 11:50
LeighRogers14-Mar-07 11:50 
AnswerRe: Simple Problem? Blind Author cant see? Pin
John R. Shaw14-Mar-07 15:33
John R. Shaw14-Mar-07 15:33 
AnswerRe: Simple Problem? Blind Author cant see? Pin
Hamid_RT14-Mar-07 19:15
Hamid_RT14-Mar-07 19:15 
QuestionNeed help communicating with MFC dialog boxes (domodal) [modified] Pin
CoffeeAddict1914-Mar-07 11:10
CoffeeAddict1914-Mar-07 11:10 
AnswerRe: Need help communicating with MFC dialog boxes (domodal) Pin
toxcct14-Mar-07 11:23
toxcct14-Mar-07 11:23 
GeneralRe: Need help communicating with MFC dialog boxes (domodal) Pin
andersod214-Mar-07 12:27
andersod214-Mar-07 12:27 
GeneralRe: Need help communicating with MFC dialog boxes (domodal) [modified] Pin
CoffeeAddict1914-Mar-07 18:24
CoffeeAddict1914-Mar-07 18:24 
GeneralRe: Need help communicating with MFC dialog boxes (domodal) Pin
andersod214-Mar-07 18:42
andersod214-Mar-07 18:42 
GeneralRe: Need help communicating with MFC dialog boxes (domodal) Pin
andersod214-Mar-07 13:13
andersod214-Mar-07 13:13 
GeneralRe: Need help communicating with MFC dialog boxes (domodal) Pin
toxcct14-Mar-07 22:07
toxcct14-Mar-07 22:07 
GeneralRe: Need help communicating with MFC dialog boxes (domodal) Pin
andersod215-Mar-07 10:30
andersod215-Mar-07 10:30 
Questionpassing function pointer Pin
ScotDolan14-Mar-07 10:53
ScotDolan14-Mar-07 10:53 
AnswerRe: passing function pointer Pin
Mark Salsbery14-Mar-07 11:42
Mark Salsbery14-Mar-07 11:42 
GeneralRe: passing function pointer Pin
ThatsAlok14-Mar-07 19:34
ThatsAlok14-Mar-07 19:34 
GeneralRe: passing function pointer Pin
Mark Salsbery14-Mar-07 20:13
Mark Salsbery14-Mar-07 20:13 
GeneralRe: passing function pointer Pin
ThatsAlok14-Mar-07 20:20
ThatsAlok14-Mar-07 20:20 
QuestionGet users names list Pin
Caos00014-Mar-07 9:59
Caos00014-Mar-07 9:59 

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.