Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDynamically Creat icons? Pin
jimNLX16-May-02 4:38
jimNLX16-May-02 4:38 
AnswerRe: Dynamically Creat icons? Pin
Shog916-May-02 17:22
sitebuilderShog916-May-02 17:22 
Generalcopy-constructor issue Pin
Carlos Sánchez García16-May-02 4:29
Carlos Sánchez García16-May-02 4:29 
GeneralRe: copy-constructor issue Pin
Joaquín M López Muñoz16-May-02 5:02
Joaquín M López Muñoz16-May-02 5:02 
GeneralRe: copy-constructor issue Pin
Mike Nordell16-May-02 5:33
Mike Nordell16-May-02 5:33 
GeneralRe: copy-constructor issue Pin
Maxwell Chen16-May-02 19:26
Maxwell Chen16-May-02 19:26 
GeneralRe: copy-constructor issue Pin
Carlos Sánchez García16-May-02 23:45
Carlos Sánchez García16-May-02 23:45 
GeneralRe: copy-constructor issue Pin
Mike Nordell17-May-02 1:30
Mike Nordell17-May-02 1:30 
Your choice for the global array is perfectly valid since it's a compile-time static set, no need to use a vector here.

However, I think you'd be better off to make the Dog array m_p inside doghouse a standard container. It would make your code easier to maintain, it would take care of all resource management, and (unless you really wanted to) it would allow you to use the compiler generated versions of copy-contructor, assignment operator and destructor.

Does anybody know the gory details of std::copy?

Yes, and so do you if you look it up in the documentation or even the header files. It's defined by including <algorithm>. If you're using the Dinkum library it's acually defined in <xutility>, though you are only to get to its definition using <algorithm>. It's basically a copy loop.
GeneralRecording Audio Pin
AJ12316-May-02 4:15
AJ12316-May-02 4:15 
GeneralRe: Recording Audio Pin
redeemer16-May-02 4:17
redeemer16-May-02 4:17 
QuestionHow do i assign a string to each item in a ListView? Pin
redeemer16-May-02 4:10
redeemer16-May-02 4:10 
AnswerRe: How do i assign a string to each item in a ListView? Pin
Chris Losinger16-May-02 5:03
professionalChris Losinger16-May-02 5:03 
GeneralRe: How do i assign a string to each item in a ListView? Pin
redeemer16-May-02 5:08
redeemer16-May-02 5:08 
GeneralRe: How do i assign a string to each item in a ListView? Pin
Chris Losinger16-May-02 5:17
professionalChris Losinger16-May-02 5:17 
GeneralRe: How do i assign a string to each item in a ListView? Pin
redeemer16-May-02 5:38
redeemer16-May-02 5:38 
GeneralRe: How do i assign a string to each item in a ListView? Pin
Chris Losinger16-May-02 6:36
professionalChris Losinger16-May-02 6:36 
GeneralDialogs question Pin
BlackRider16-May-02 3:50
BlackRider16-May-02 3:50 
GeneralRe: Dialogs question Pin
Prem Kumar16-May-02 3:48
Prem Kumar16-May-02 3:48 
GeneralRe: Dialogs question Pin
Chris Losinger16-May-02 3:56
professionalChris Losinger16-May-02 3:56 
GeneralRe: Dialogs question Pin
Nish Nishant16-May-02 4:04
sitebuilderNish Nishant16-May-02 4:04 
QuestionIs there a tool that I can find all the bmp file in one directroy (include the bmp file in exe ,dll)? Pin
16-May-02 3:07
suss16-May-02 3:07 
AnswerRe: Is there a tool that I can find all the bmp file in one directroy (include the bmp file in exe ,dll)? Pin
16-May-02 6:49
suss16-May-02 6:49 
GeneralDebug ,Release build problem.. Pin
16-May-02 2:34
suss16-May-02 2:34 
GeneralRe: Debug ,Release build problem.. Pin
Chris Losinger16-May-02 3:18
professionalChris Losinger16-May-02 3:18 
GeneralRe: Debug ,Release build problem.. Pin
Renjith Ramachandran16-May-02 3:56
Renjith Ramachandran16-May-02 3:56 

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.