Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags
c++ x 28
c x 9

20 Posted Topics

Member Avatar for TimC

Hi all. Can some one help me with the following answers. I am brushing up for an exam monday and we have to answer one q from a linux environment. I hope this Q comes up as it has done over the last 2 years. thanks in advance T [B]Consider …

Member Avatar for TimC
0
108
Member Avatar for TimC

Hi all, I have just started MS VB 2005 and I have already run into a little problem. I set up a blank screen. I then placed an image on the right hand side of the screen. when i played the application, i maximised the screen size. I expected to …

Member Avatar for TimC
0
129
Member Avatar for TimC

I am having a small problem removing ALL items from a linked list. I have written a function that will remove all discharged patients from the linked list. [code] [COLOR=Red] for(int a=1;a<(S.size()+1);a++) { int x=S.retrieve_status(a); if (x==5) { S.remove(a); } }[/COLOR] [/code] in this function I check to see if …

Member Avatar for TimC
0
188
Member Avatar for desiree

.... relax..... your project deadline was 11 months ago. If I could give you some advice... The contributors to this forum are a good pack of people. If they see you making an effort they will give you the best advice. (Trust me I know, I’m in the middle of …

Member Avatar for winbatch
0
126
Member Avatar for TimC

[COLOR=Red]Dear All, If i run the code below it will let me input a name. "John Doe" but it will only print out "John". I know how to create a char array[] and I also know how to use cin.getline but can the char array be used with the doctor …

Member Avatar for SpS
0
160
Member Avatar for TimC

what I am trying to do is retrive the "status" back to my main prog of the status of a patient. I thought it was a simple case of S.retrieve(index of person I was looking for) and I would recive the status (which is an integer) back to my main …

Member Avatar for TimC
0
87
Member Avatar for TimC

the following code will print out all the names of patients I have in a linked list. I have given the user an option to choose which patient they would like to move in the linked list. i thought if I called S.insert(passed the new postition, and P (where P …

Member Avatar for TimC
0
137
Member Avatar for TimC

Below I have attached 4 methods from my linked list class. 1) find 2)remove 3)retrieve 4) Insert. what I'm trying to do is write code that will let me MOVE the position of a node to another position in the linked list. Anyone got a clue?? regards Tim [code]SeqItemType Sequence::retrieve(int …

Member Avatar for TimC
0
141
Member Avatar for TimC

Dear all, when i run the prog below it works fine when I input an integer but if I enter a char by mistake the output to the screen goes mad. what i want to do is write a piece of code that 1) if char input then print to …

Member Avatar for TimC
0
162
Member Avatar for TimC

Dear all, I am in the process of writting a hospital/doctor prog. I have the majority working. BUT the program will only work ONCE. when I run the prog and input patient details (No.1), the details are inputed correctly. when I choose (No.5) I am able to correctly input the …

Member Avatar for winbatch
0
289
Member Avatar for TimC

Dear all, I have a prog working and printing to screen. But as my program has grown i.e class/method definitions I need to tidy up my main(); my problem is with printing my results to the screen. [COLOR=Red]///this will print out to screen perfectly. note i left out the class/method …

Member Avatar for WolfPack
0
163
Member Avatar for TimC

Ref Polymorphism: I am trying to get the method `calculate_pay()` to work. As each type of doctor will have a differnt payrate I am trying to call the calculate_pay() but i am having difficulty. Should it be int doctor::calculate_pay() { return (doctor::get_Payrate()*hours); } will this line return each type of …

Member Avatar for TimC
0
171
Member Avatar for TimC

dear all, when I try and compile the following code I am recieved a linker error. Can some one steer me in the right direction. Also are my use of the virtual statments correct? many thanks tim #include <iostream> #include <stdlib.h> #include <string.h> using namespace std; class doctor{ protected: string …

Member Avatar for WolfPack
0
101
Member Avatar for TimC

Now that my program is growing in size and I have quiet a few display functions is it possible to put all these display functions in another header file eg. display_functions.h My objective is to clean up my main() file so I dont have to scroll up and down all …

Member Avatar for winbatch
0
263
Member Avatar for TimC

I have 2 functions in my main(). When I call the first function void patient_main_menu(); it will leave me input all the required fields and it also will print to screen EXACTLY what I had inputed originally. When the second function is called void doctor_main_menu(); it SKIPS/ Will not leave …

Member Avatar for TimC
0
228
Member Avatar for TimC

Dear All. I have a small problem with the code attached. I am trying to add an object to a linked list. When I try to compile I am getting an error. For the life of me I cant figure out the error. this is after 5hrs of head wrecking …

Member Avatar for Dave Sinkula
0
92
Member Avatar for TimC

Are there any good tutorials out there that explain adding objects to a single linked list. All I have come across are linked lists involving "structs". regards T

Member Avatar for SpS
0
165
Member Avatar for TimC

Winbatch, I have another Q for you. I have the whole project compiling but I am stuck with displaying all the Customer details from the Q. I can pass the Class Object "Tim" to the Queue with various details but I need to write these to a file when I …

Member Avatar for winbatch
0
140
Member Avatar for skprasat

The simple answer to your question is Yes. What you need to do is creatre a Class eg called info and then call the object of that class msg. then you can pass info to that object and the object with all the info you require can be stored in …

Member Avatar for Dogtree
0
262
Member Avatar for TimC

Dear All. Basically I am having trouble passing my class object to myQueue. I know my Queue works as I had it working for Integers and Charachters but after approx 25hrs over 4 days I still can not get my Object to store in my Queue. Any and All help …

Member Avatar for winbatch
0
203

The End.