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

C / C++ / MFC

 
QuestionAre class definitions constant? Pin
One Stone23-Nov-04 0:51
One Stone23-Nov-04 0:51 
AnswerRe: Are class definitions constant? Pin
vikramlinux23-Nov-04 1:05
vikramlinux23-Nov-04 1:05 
AnswerRe: Are class definitions constant? Pin
Andrew Walker23-Nov-04 1:48
Andrew Walker23-Nov-04 1:48 
Questionabstract base class and data member doubt ? Pin
xcavin23-Nov-04 0:51
xcavin23-Nov-04 0:51 
AnswerRe: abstract base class and data member doubt ? Pin
geo_m23-Nov-04 1:30
geo_m23-Nov-04 1:30 
AnswerRe: abstract base class and data member doubt ? Pin
Andrew Walker23-Nov-04 1:41
Andrew Walker23-Nov-04 1:41 
GeneralHelp with writing class and imp them Pin
bhangie23-Nov-04 0:46
bhangie23-Nov-04 0:46 
GeneralRe: Help with writing class and imp them Pin
Maximilien23-Nov-04 2:41
Maximilien23-Nov-04 2:41 
the code looks ok, except maybe for the display method; the show_book method will do what ? no, it is declared as void, and cout will do nothing for it; or might not compile.

to find a book, you need to compare somthing, when iterating the list, you can compare one it with the search criteria.

for example ( pseudo code )

 <br />
CString sCriteriaTitle;<br />
for(int i = 0; i < book_list.size(); i++)<br />
{<br />
  if ( sCriteriaTitle.Compare( book_list[i]->get_book_title() ) == 0)<br />
  {<br />
    bFound = true;<br />
  }<br />
}<br />
<br />
}<br />



Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: Help with writing class and imp them Pin
BaldwinMartin23-Nov-04 9:57
BaldwinMartin23-Nov-04 9:57 
GeneralAfxBeginThread Pin
jaime.lopez23-Nov-04 0:27
jaime.lopez23-Nov-04 0:27 
GeneralRe: AfxBeginThread Pin
shiraztk23-Nov-04 0:42
shiraztk23-Nov-04 0:42 
GeneralRe: AfxBeginThread Pin
BlackDice23-Nov-04 2:39
BlackDice23-Nov-04 2:39 
GeneralWM_SHUTDOWN notification Win32 dll Pin
AssemblySoft22-Nov-04 23:58
AssemblySoft22-Nov-04 23:58 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
geo_m23-Nov-04 1:37
geo_m23-Nov-04 1:37 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
AssemblySoft23-Nov-04 10:43
AssemblySoft23-Nov-04 10:43 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
BaldwinMartin23-Nov-04 10:21
BaldwinMartin23-Nov-04 10:21 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
AssemblySoft23-Nov-04 10:40
AssemblySoft23-Nov-04 10:40 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
BaldwinMartin23-Nov-04 10:46
BaldwinMartin23-Nov-04 10:46 
GeneralThread termination problem. Pin
ledallam22-Nov-04 21:38
ledallam22-Nov-04 21:38 
GeneralRe: Thread termination problem. Pin
Joaquín M López Muñoz22-Nov-04 22:35
Joaquín M López Muñoz22-Nov-04 22:35 
GeneralRe: Thread termination problem. Pin
ledallam22-Nov-04 22:47
ledallam22-Nov-04 22:47 
QuestionReBar - how to set button state on it? Pin
Darked developer22-Nov-04 20:57
Darked developer22-Nov-04 20:57 
AnswerRe: ReBar - how to set button state on it? Pin
Darked developer22-Nov-04 21:02
Darked developer22-Nov-04 21:02 
GeneralRe: ReBar - how to set button state on it? Pin
pc_dev22-Nov-04 21:13
pc_dev22-Nov-04 21:13 
Generalmodeless dialog Pin
pc_dev22-Nov-04 20:04
pc_dev22-Nov-04 20:04 

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.