Forum: Getting Started and Choosing a Distro Aug 22nd, 2008 |
| Replies: 3 Views: 1,384 John A, thanks for that. I'll change the answer in the exam to match what you said. Hopefully it comes up. |
Forum: Getting Started and Choosing a Distro Aug 22nd, 2008 |
| Replies: 3 Views: 1,384 After 38 views and no responses I decided to do it the hard way and checked my notes. These were the answers I found.
Explain the terms
/dev/hdc Device file, which specifies the device file... |
Forum: Getting Started and Choosing a Distro Aug 21st, 2008 |
| Replies: 3 Views: 1,384 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... |
Forum: VB.NET May 1st, 2006 |
| Replies: 2 Views: 1,320 william
all sorted
many thanks. |
Forum: VB.NET May 1st, 2006 |
| Replies: 2 Views: 1,320 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... |
Forum: C Jan 1st, 2006 |
| Replies: 2 Views: 4,897 try this and see what happens:
for(int a=0; a<S.size()+1; a++)
Clinton thanks for the response. I tryed that but unfortunately it did not work. HOWEVER you got me thinking about the for loop... |
Forum: C Dec 30th, 2005 |
| Replies: 2 Views: 4,897 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.
for(int a=1;a<(S.size()+1);a++)
... |
Forum: C++ Dec 18th, 2005 |
| Replies: 6 Views: 1,552 .... 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... |
Forum: C++ Dec 17th, 2005 |
| Replies: 7 Views: 1,645 Thanks, winbatch. That did the trick nicely.
BUT
if I were to use pointers do you know how I sort out the above problem. the reason I ask is part of project is to use pointers. If I get it... |
Forum: C++ Dec 17th, 2005 |
| Replies: 7 Views: 1,645 Oh the dilemma, I checked the forum earlier and found the solution with the help of sunnypalsingh. I implemented the solution and it worked perfectly. However when I checked back later winbatch... |
Forum: C++ Dec 17th, 2005 |
| Replies: 7 Views: 1,645 Thanks for the solution.
As for "and why were you including iostream twice?" the answer to that is I had my methods and class in another header file and I just copied them all into one main and... |
Forum: C++ Dec 16th, 2005 |
| Replies: 7 Views: 1,645 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... |
Forum: C Dec 16th, 2005 |
| Replies: 4 Views: 1,578 Good point. We have a lab tomorrow morning and I'll ask the lecturer. Sometimes I reckon the lecturer just pulls the notes down off the net somewhere and just throws them out to us. |
Forum: C Dec 16th, 2005 |
| Replies: 4 Views: 1,578 I figured this one out myself or should I say the solution works!!!
Change SeqItemType to an int. then the method will return an int which is what i wanted and I can use an if/case statement from... |
Forum: C++ Dec 16th, 2005 |
| Replies: 1 Views: 4,381 solution thanks to perniciosus
void Sequence::move(int from, int to)
{
SeqItemType item = find( from )->item ;
remove(from) ; |
Forum: C Dec 15th, 2005 |
| Replies: 4 Views: 1,578 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... |
Forum: C Dec 15th, 2005 |
| Replies: 3 Views: 1,480 |
Forum: C Dec 14th, 2005 |
| Replies: 3 Views: 1,480 Ok, I cant handle it. my head is wrecked from trying out but miserably failing with new code. Has anyone got a clue where to go from here. Can some take pity on this man....after all its christams :) |
Forum: C++ Dec 14th, 2005 |
| Replies: 2 Views: 2,964 simple yet just what I was looking for.
thx |
Forum: C Dec 14th, 2005 |
| Replies: 3 Views: 1,480 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... |
Forum: C++ Dec 14th, 2005 |
| Replies: 1 Views: 4,381 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... |
Forum: C++ Dec 13th, 2005 |
| Replies: 2 Views: 2,964 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
... |
Forum: C++ Dec 13th, 2005 |
| Replies: 11 Views: 1,839 I can't see a menu.h file either. the only header files i can see are doctors.h, linkedlist.h, patient.h, & displayMenu.h. |
Forum: C++ Dec 13th, 2005 |
| Replies: 11 Views: 1,839 yes i have int main_menu() declared in my main.cpp and I cleaned up my code by placing all my functions in (displayMenu.h) As i dont have a main.h I am still a little lost. thx tim |
Forum: C++ Dec 12th, 2005 |
| Replies: 11 Views: 1,839 must be the complier i'm using. when I go to use the program and choose the option to print out doctor details (no 12) it prints out "test 3" even though I have it commented out. Does it print out... |
Forum: C++ Dec 11th, 2005 |
| Replies: 11 Views: 1,839 Unfortunately that is not the solution. Can anybody else throw some light on the situation. I'm really under pressure.
mant thanks, tim |
Forum: C++ Dec 10th, 2005 |
| Replies: 11 Views: 1,839 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... |
Forum: C++ Dec 8th, 2005 |
| Replies: 4 Views: 1,239 i thought the Array was initalised (doctor* Array[5];) Is that not an initalised array?. As for looping through the 2 of 5 elements that is ok, i was just trying to get anything to print to screen. ... |
Forum: C++ Dec 8th, 2005 |
| Replies: 4 Views: 1,239 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... |
Forum: C++ Dec 7th, 2005 |
| Replies: 1 Views: 1,114 DOWWWWWWWWW;
starting to get the hand of this C++ stuff.
cout<<"Enter no of hrs worked"<<endl;
cin>>hrs;
newdoctor->set_Hours(hrs);// i forgot this line. |
Forum: C++ Dec 7th, 2005 |
| Replies: 1 Views: 1,114 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.... |
Forum: C++ Dec 6th, 2005 |
| Replies: 1 Views: 1,020 /*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... |
Forum: C++ Dec 4th, 2005 |
| Replies: 4 Views: 1,723 sorry about being vague but perhaps this will throw more light on the situation.
int display_function(); //declaration of function outside main
main()
{ |
Forum: C++ Dec 4th, 2005 |
| Replies: 4 Views: 1,723 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... |
Forum: C++ Dec 4th, 2005 |
| Replies: 2 Views: 2,787 that link solved my problem,
thx |
Forum: C++ Dec 3rd, 2005 |
| Replies: 2 Views: 2,787 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... |
Forum: C Nov 30th, 2005 |
| Replies: 2 Views: 1,689 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... |
Forum: C++ Nov 27th, 2005 |
| Replies: 3 Views: 5,909 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 |
Forum: C++ Jun 9th, 2005 |
| Replies: 1 Views: 1,552 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... |
Forum: C++ May 30th, 2005 |
| Replies: 3 Views: 7,661 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... |