Search Results

Showing results 1 to 40 of 42
Search took 0.01 seconds.
Search: Posts Made By: TimC
Forum: Getting Started and Choosing a Distro Aug 22nd, 2008
Replies: 3
Views: 1,384
Posted By TimC
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
Posted By TimC
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
Posted By 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...
Forum: VB.NET May 1st, 2006
Replies: 2
Views: 1,320
Posted By TimC
william

all sorted

many thanks.
Forum: VB.NET May 1st, 2006
Replies: 2
Views: 1,320
Posted By 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...
Forum: C Jan 1st, 2006
Replies: 2
Views: 4,897
Posted By TimC
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
Posted By 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.



for(int a=1;a<(S.size()+1);a++)
...
Forum: C++ Dec 18th, 2005
Replies: 6
Views: 1,552
Posted By TimC
.... 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
Posted By TimC
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
Posted By TimC
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
Posted By TimC
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
Posted By TimC
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
Posted By TimC
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
Posted By TimC
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
Posted By TimC
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
Posted By 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...
Forum: C Dec 15th, 2005
Replies: 3
Views: 1,480
Posted By TimC
Perfect, solution.
Forum: C Dec 14th, 2005
Replies: 3
Views: 1,480
Posted By TimC
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
Posted By TimC
simple yet just what I was looking for.
thx
Forum: C Dec 14th, 2005
Replies: 3
Views: 1,480
Posted By 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...
Forum: C++ Dec 14th, 2005
Replies: 1
Views: 4,381
Posted By 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...
Forum: C++ Dec 13th, 2005
Replies: 2
Views: 2,964
Posted By 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
...
Forum: C++ Dec 13th, 2005
Replies: 11
Views: 1,839
Posted By TimC
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
Posted By TimC
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
Posted By TimC
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
Posted By TimC
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
Posted By 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...
Forum: C++ Dec 8th, 2005
Replies: 4
Views: 1,239
Posted By TimC
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
Posted By 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...
Forum: C++ Dec 7th, 2005
Replies: 1
Views: 1,114
Posted By TimC
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
Posted By 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....
Forum: C++ Dec 6th, 2005
Replies: 1
Views: 1,020
Posted By 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...
Forum: C++ Dec 4th, 2005
Replies: 4
Views: 1,723
Posted By TimC
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
Posted By 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...
Forum: C++ Dec 4th, 2005
Replies: 2
Views: 2,787
Posted By TimC
that link solved my problem,

thx
Forum: C++ Dec 3rd, 2005
Replies: 2
Views: 2,787
Posted By 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...
Forum: C Nov 30th, 2005
Replies: 2
Views: 1,689
Posted By 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...
Forum: C++ Nov 27th, 2005
Replies: 3
Views: 5,909
Posted By 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
Forum: C++ Jun 9th, 2005
Replies: 1
Views: 1,552
Posted By 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...
Forum: C++ May 30th, 2005
Replies: 3
Views: 7,661
Posted By TimC
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...
Showing results 1 to 40 of 42

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC