Click here to Skip to main content
15,897,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Deque using elements from a class Pin
David Crow4-Oct-07 5:33
David Crow4-Oct-07 5:33 
AnswerRe: Deque using elements from a class [modified] Pin
George L. Jackson4-Oct-07 5:54
George L. Jackson4-Oct-07 5:54 
GeneralRe: Deque using elements from a class Pin
led mike4-Oct-07 6:20
led mike4-Oct-07 6:20 
GeneralRe: Deque using elements from a class Pin
George L. Jackson4-Oct-07 6:32
George L. Jackson4-Oct-07 6:32 
GeneralRe: Deque using elements from a class Pin
led mike4-Oct-07 7:20
led mike4-Oct-07 7:20 
AnswerRe: Deque using elements from a class Pin
led mike4-Oct-07 6:17
led mike4-Oct-07 6:17 
AnswerRe: Deque using elements from a class Pin
John R. Shaw4-Oct-07 12:24
John R. Shaw4-Oct-07 12:24 
GeneralRe: Deque using elements from a class Pin
PolarFuzz5-Oct-07 8:35
PolarFuzz5-Oct-07 8:35 
I will probably fix the destructor stuff later. I THINK the program crashes because it is recalling non-existant values from the patient class that no longer exist or out of scope. I originally tried to define the deque with the definition of the doctor class (doctor.h) below:

#include "Patient.h"
#include <deque>
<p></p>
class Doctor	{
<p></p>
private:
	char* LastName;
	char* Room;
	char* Code;
        deque<patient> PatientQue;  // This does not seem to be allowed
<p></p>
public:
	Doctor();
	Doctor (char *, char *, char *);
	
	void SetName(char *);
	void SetRoom(char *);
	void SetCode(char *);
	void SetPatientQue (Patient);

	char* GetName();
	char* GetRoom();
	char* GetCode();
	Patient GetPatientQue();
};


If I could define it here, then I think my problem would be solved. However, I get an error message, something about a semicolon that is expected before the "<". All the other code within the doctor procedure was just a work-around because this did not work.

Do you know how to define a deque within the class header? Confused | :confused:
GeneralRe: Deque using elements from a class Pin
John R. Shaw5-Oct-07 21:57
John R. Shaw5-Oct-07 21:57 
GeneralRe: Deque using elements from a class Pin
PolarFuzz8-Oct-07 2:05
PolarFuzz8-Oct-07 2:05 
Questionwhat is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 5:07
carabutnicolae12344-Oct-07 5:07 
QuestionRe: what is the API that MS Office is calling to save a file under a different name ? Pin
David Crow4-Oct-07 5:34
David Crow4-Oct-07 5:34 
AnswerRe: what is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 5:52
carabutnicolae12344-Oct-07 5:52 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
David Crow4-Oct-07 6:38
David Crow4-Oct-07 6:38 
AnswerRe: what is the API that MS Office is calling to save a file under a different name ? Pin
Mark Salsbery4-Oct-07 5:53
Mark Salsbery4-Oct-07 5:53 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 6:06
carabutnicolae12344-Oct-07 6:06 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
Mark Salsbery4-Oct-07 6:13
Mark Salsbery4-Oct-07 6:13 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 6:15
carabutnicolae12344-Oct-07 6:15 
QuestionHow to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 4:39
hvanzyll4-Oct-07 4:39 
QuestionRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 5:56
Mark Salsbery4-Oct-07 5:56 
AnswerRe: How to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 6:05
hvanzyll4-Oct-07 6:05 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 6:19
Mark Salsbery4-Oct-07 6:19 
GeneralRe: How to draw bitmaps without access to HDC or HWND [modified] Pin
hvanzyll4-Oct-07 6:27
hvanzyll4-Oct-07 6:27 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 6:54
Mark Salsbery4-Oct-07 6:54 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 6:57
hvanzyll4-Oct-07 6: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.