Click here to Skip to main content
15,888,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSystem-Wide WriteProcessMemory Hook Pin
capricious_00120-Jul-06 16:56
capricious_00120-Jul-06 16:56 
Questionchecksum Pin
thathvamsi20-Jul-06 16:18
thathvamsi20-Jul-06 16:18 
AnswerRe: checksum [modified] Pin
anu_8820-Jul-06 18:33
anu_8820-Jul-06 18:33 
QuestionBig Int Class Pin
JrunkDunc20-Jul-06 16:02
JrunkDunc20-Jul-06 16:02 
AnswerRe: Big Int Class Pin
toxcct20-Jul-06 23:14
toxcct20-Jul-06 23:14 
AnswerRe: Big Int Class Pin
JrunkDunc21-Jul-06 12:49
JrunkDunc21-Jul-06 12:49 
Questionhow to create instance??? [modified] Pin
With_problem20-Jul-06 16:01
With_problem20-Jul-06 16:01 
AnswerRe: how to create instance??? Pin
Christian Graus20-Jul-06 16:43
protectorChristian Graus20-Jul-06 16:43 
AnswerRe: how to create instance??? Pin
ThatsAlok21-Jul-06 0:06
ThatsAlok21-Jul-06 0:06 
QuestionReadProcessMemory and dynamic memory allocation Pin
are_all_nicks_taken_or_what20-Jul-06 12:40
are_all_nicks_taken_or_what20-Jul-06 12:40 
AnswerRe: ReadProcessMemory and dynamic memory allocation Pin
Hamid_RT27-Jul-06 7:56
Hamid_RT27-Jul-06 7:56 
QuestionHow to retrieve USB flash drive mount point Pin
mmhu20-Jul-06 11:51
mmhu20-Jul-06 11:51 
QuestionVectors Pin
BlitzPackage20-Jul-06 11:01
BlitzPackage20-Jul-06 11:01 
Greetings,

Is it acceptable or good programming practice to have vectors nested inside each other within one big vector? For example, say I wanted to record inquiries for a business. Say there were only six type of inquiries and, of course, they can occur in one of 12 months, and each month has 30 or so days.

Is it ok to put an object call m_inqInquiry into a vector m_vDays into a vector m_vMonths, then put m_vMonths into a vector call m_vInquiries.

This proposed system would work as follows when a new inquire is created: The m_vInquiries would find the appropriate month vector based on the current month, then in the appropriate m_vMonths vector it would find the appropriate m_vDays vector, then in the particular day m_vDays vector it would add an m_inqInquiry object.

Is that consider bad practice? Is it ok to add more nested levels?

Thanks in advance,
BP
AnswerRe: Vectors Pin
Chris Losinger20-Jul-06 11:10
professionalChris Losinger20-Jul-06 11:10 
GeneralRe: Vectors Pin
BlitzPackage20-Jul-06 11:36
BlitzPackage20-Jul-06 11:36 
GeneralRe: Vectors Pin
David Crow20-Jul-06 11:42
David Crow20-Jul-06 11:42 
GeneralRe: Vectors Pin
Chris Losinger20-Jul-06 11:48
professionalChris Losinger20-Jul-06 11:48 
GeneralRe: Vectors Pin
BlitzPackage20-Jul-06 12:00
BlitzPackage20-Jul-06 12:00 
GeneralRe: Vectors Pin
Chris Losinger20-Jul-06 12:41
professionalChris Losinger20-Jul-06 12:41 
Questionalphablend API Pin
lizamathew20-Jul-06 10:49
lizamathew20-Jul-06 10:49 
QuestionForce WM_COMMAND Pin
Andre xxxxxxx20-Jul-06 10:42
Andre xxxxxxx20-Jul-06 10:42 
AnswerRe: Force WM_COMMAND Pin
ThatsAlok20-Jul-06 23:09
ThatsAlok20-Jul-06 23:09 
AnswerRe: Force WM_COMMAND Pin
ThatsAlok20-Jul-06 23:11
ThatsAlok20-Jul-06 23:11 
QuestionRead Lippman C++ Primer - what next? Pin
brett5432120-Jul-06 10:06
brett5432120-Jul-06 10:06 
AnswerRe: Read Lippman C++ Primer - what next? Pin
led mike20-Jul-06 10:57
led mike20-Jul-06 10:57 

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.