Click here to Skip to main content
15,894,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCommon File Dialog (SetControlText) - Vista Pin
me17-Oct-06 3:34
me17-Oct-06 3:34 
AnswerRe: Common File Dialog (SetControlText) - Vista Pin
TomJena6-Dec-09 10:16
TomJena6-Dec-09 10:16 
Questionhow do you code for the automatic generation of employee no Pin
paradise_517-Oct-06 3:31
paradise_517-Oct-06 3:31 
AnswerRe: how do you code for the automatic generation of employee no Pin
Cedric Moonen17-Oct-06 3:34
Cedric Moonen17-Oct-06 3:34 
AnswerRe: how do you code for the automatic generation of employee no Pin
David Crow17-Oct-06 3:56
David Crow17-Oct-06 3:56 
Questionhow to create two views for one doc in MDI Pin
chethu66517-Oct-06 2:25
chethu66517-Oct-06 2:25 
QuestionConstructing a Tree Pin
llp00na17-Oct-06 1:59
llp00na17-Oct-06 1:59 
AnswerRe: Constructing a Tree Pin
me17-Oct-06 3:52
me17-Oct-06 3:52 
Hi,
I am a bit confused by your example.
It appears that you keep only the highest value for the first line, but keep all values for the following lines.
On the following lines the percentage is based on the number of times the string occurs total, not as part of the tree.

My reading of your algorithum is:
Take the first line from each file.
Find the most common 'first line' value.
Discard all file that do not have this as the first line value
Using all the remaining files, for each line, count how many of each string occurs.

This, to me, is not really a tree.

If it were a tree you would get:

A (3/4 occurrences = 75%)
B ( 2/4 occurrences = 50%) E (1/4 occurrences = 25%)
C (1 occurrence=25%) A (1 occurrence= 25%) D (1 occurrence=25%)
D (1 occurrence=25%) E (1 occurrence= 25%) D (1 occurrence= 25%)
E (1 occurrence=25%) E (1 occurrence= 25%) F (1 occurrence= 25%)

Could you please clarify what you are after?

Hugh

GeneralRe: Constructing a Tree Pin
llp00na17-Oct-06 5:39
llp00na17-Oct-06 5:39 
QuestionRe: Constructing a Tree Pin
David Crow17-Oct-06 3:53
David Crow17-Oct-06 3:53 
AnswerRe: Constructing a Tree Pin
llp00na17-Oct-06 5:46
llp00na17-Oct-06 5:46 
Questionhow resource editor works in Vc++ Pin
AghaJaffer17-Oct-06 1:58
AghaJaffer17-Oct-06 1:58 
AnswerRe: how resource editor works in Vc++ Pin
Mark Salsbery17-Oct-06 6:55
Mark Salsbery17-Oct-06 6:55 
Questionhow resource editor works in Vc++ Pin
AghaJaffer17-Oct-06 1:56
AghaJaffer17-Oct-06 1:56 
QuestionCArchive Pin
Mohammad Khodaii17-Oct-06 1:46
Mohammad Khodaii17-Oct-06 1:46 
AnswerRe: CArchive Pin
David Crow17-Oct-06 2:54
David Crow17-Oct-06 2:54 
Questioncreating a new window Pin
prithaa17-Oct-06 1:25
prithaa17-Oct-06 1:25 
QuestionToolTip Pin
zon_cpp17-Oct-06 1:06
zon_cpp17-Oct-06 1:06 
AnswerRe: ToolTip Pin
Hamid_RT17-Oct-06 1:08
Hamid_RT17-Oct-06 1:08 
AnswerRe: ToolTip Pin
toxcct17-Oct-06 1:34
toxcct17-Oct-06 1:34 
QuestionOne Question ?.. Pin
Sakthiu17-Oct-06 0:56
Sakthiu17-Oct-06 0:56 
QuestionRe: One Question ?.. Pin
David Crow17-Oct-06 3:04
David Crow17-Oct-06 3:04 
AnswerRe: One Question ?.. Pin
Sakthiu17-Oct-06 3:50
Sakthiu17-Oct-06 3:50 
QuestionRe: One Question ?.. Pin
David Crow17-Oct-06 4:04
David Crow17-Oct-06 4:04 
QuestionWhy I can't beging thread from myclass constructor? Pin
NoName II17-Oct-06 0:45
NoName II17-Oct-06 0:45 

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.