Click here to Skip to main content
15,921,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl w/ multiple attributes Pin
Mike Danberg23-Nov-04 22:42
Mike Danberg23-Nov-04 22:42 
QuestionWhat's the benefit using serialization? Pin
Anonymous22-Nov-04 9:43
Anonymous22-Nov-04 9:43 
AnswerRe: What's the benefit using serialization? Pin
David Crow22-Nov-04 10:43
David Crow22-Nov-04 10:43 
AnswerRe: What's the benefit using serialization? Pin
Blake Miller23-Nov-04 9:26
Blake Miller23-Nov-04 9:26 
GeneralAcess and C++ application Pin
krimkrim22-Nov-04 8:54
krimkrim22-Nov-04 8:54 
GeneralRe: Acess and C++ application Pin
BaldwinMartin23-Nov-04 10:06
BaldwinMartin23-Nov-04 10:06 
GeneralNeed help for this assignment.... Pin
rudylili22-Nov-04 8:04
rudylili22-Nov-04 8:04 
GeneralRe: Need help for this assignment.... Pin
David Crow22-Nov-04 8:47
David Crow22-Nov-04 8:47 
Can we assume that you've at least started? If so, what part of the project is giving you trouble?

Do you have code for converting base-10 numbers into Roman numerals? Once you have that, it's a simple matter of going through each Roman numeral and adjusting the array mentioned in the assignment. For example, if the Roman numeral was "MMDCCLXXXIII", you could adjust the array like:

int arr[7];
for (int i = 0; ...)
{
    if (roman[i] == 'M')
        arr[0]++;
    else if (roman[i] == 'D')
        arr[1]++;
    else if (roman[i] == 'C')
        arr[2]++;
    else if (roman[i] == 'L')
        arr[3]++;
    else if (roman[i] == 'X')
        arr[4]++;
    else if (roman[i] == 'V')
        arr[5]++;
    else if (roman[i] == 'I')
        arr[6]++;
}
Now do the same thing with the second Roman numeral.


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: Need help for this assignment.... Pin
namaskaaram22-Nov-04 23:49
namaskaaram22-Nov-04 23:49 
GeneralRe: Need help for this assignment.... Pin
rudylili23-Nov-04 3:51
rudylili23-Nov-04 3:51 
GeneralSomething is not releasing the resources after program quits Pin
Budric B.22-Nov-04 7:50
Budric B.22-Nov-04 7:50 
GeneralRe: Something is not releasing the resources after program quits Pin
Maximilien22-Nov-04 8:18
Maximilien22-Nov-04 8:18 
Generaldon't know Pin
Budric B.22-Nov-04 8:47
Budric B.22-Nov-04 8:47 
Generalstatic transparent background Pin
LukeV22-Nov-04 7:44
LukeV22-Nov-04 7:44 
GeneralRe: static transparent background Pin
BaldwinMartin23-Nov-04 10:09
BaldwinMartin23-Nov-04 10:09 
GeneralOutput help Pin
Anonymous22-Nov-04 7:36
Anonymous22-Nov-04 7:36 
GeneralRe: Output help Pin
David Crow22-Nov-04 8:05
David Crow22-Nov-04 8:05 
GeneralRe: Output help Pin
namaskaaram22-Nov-04 18:36
namaskaaram22-Nov-04 18:36 
GeneralRe: Output help Pin
namaskaaram22-Nov-04 22:17
namaskaaram22-Nov-04 22:17 
QuestionHow can I know where a program leaks memory if it hangs after 48 hours of working? Pin
Joan M22-Nov-04 6:45
professionalJoan M22-Nov-04 6:45 
AnswerRe: How can I know where a program leaks memory if it hangs after 48 hours of working? Pin
BlackDice22-Nov-04 8:46
BlackDice22-Nov-04 8:46 
AnswerRe: How can I know where a program leaks memory if it hangs after 48 hours of working? Pin
floresa922-Nov-04 11:54
floresa922-Nov-04 11:54 
Generalslider Pin
teneff22-Nov-04 4:42
teneff22-Nov-04 4:42 
GeneralRe: slider Pin
David Crow22-Nov-04 4:51
David Crow22-Nov-04 4:51 
GeneralRe: slider Pin
teneff22-Nov-04 5:18
teneff22-Nov-04 5:18 

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.