No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
20 Posted Topics
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 … | |
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 … | |
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 … | |
Re: .... 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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
Re: 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 … | |
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 … |
The End.