Forum: C
Jun 20th, 2008, 5:36 AM
|
|
Replies: 6
Views: 476
Re: Correct use of malloc?
I have now edited my program so that it uses a buffer of 5 chars, and when the buffer gets full, it malloc/reallocs memory to store the buffer so far and then starts filling the buffer from the start...
|
Forum: C
Jun 19th, 2008, 2:50 AM
|
|
Replies: 6
Views: 476
Re: Correct use of malloc?
Thank you The Dark.
For anyone else who may have run into similar problems in the past, I found the following method is good for checking that enough memory has been allocated. Every time you malloc...
|
Forum: C
Jun 18th, 2008, 8:29 PM
|
|
Replies: 6
Views: 476
Correct use of malloc?
The exact uses of malloc and realloc are confusing me a bit. I know they need to be used when you don't know how much space you're going to need, e.g. storing a user entered string, but I'm still not...
|
Forum: C
Jun 17th, 2008, 5:45 AM
|
|
Replies: 6
Views: 386
|
Forum: C
Jun 17th, 2008, 4:45 AM
|
|
Replies: 6
Views: 386
Converting Temperatures
I'm using the following code to convert from Celcius to Fahrenheit but for some reason the actual conversion wont work and I can't work out why. The key lines are lines 13 and 16.
Basically, the...
|
Forum: Project Ideas
Apr 8th, 2008, 10:39 AM
|
|
Replies: 1
Views: 343
Sound Recognition
Hi. Does anyone know a language that I can use to read in a sound and figure out what note is being played? E.g. like a guitar tuner.
I think the way this is done is by measuring the frequency of the...
|
Forum: HTML / XHTML / CSS
Jun 20th, 2007, 11:39 AM
|
|
Replies: 2
Views: 208
Floating div make parent grow?
Hi. I have this website: http://www.foxcalluk.co.uk/Redesign/page.html and I would like the div for the menu on the left to always be the same height as its parents div.
Using "normal" html and css,...
|
Forum: HTML / XHTML / CSS
Feb 8th, 2007, 1:34 PM
|
|
Replies: 2
Views: 206
HTML Tables and IE
EDIT: Don't I feel stupid...I'd missed some >s off the end of some tags...disregard this post! Sorry!
Hi. I have the following page: http://herp.awardspace.com/redesign/page.php?page=species
The...
|
Forum: Existing Project Development
Jan 18th, 2007, 12:25 AM
|
|
Replies: 5
Views: 157
Thank you for everyone's help.
I took out the...
Thank you for everyone's help.
I took out the category field in the animal table. Created a link table category_animal(category id, animal id). And when adding a new animal it asks the user for its...
|
Forum: Existing Project Development
Jan 17th, 2007, 4:22 PM
|
|
Replies: 5
Views: 157
|
Forum: Existing Project Development
Jan 17th, 2007, 1:17 PM
|
|
Replies: 5
Views: 157
Categorizing
I'm in the process of making a website in php on Reptiles and Amphibians. Just using free hosting while I'm making it. Address is http://herp.awardspace.com.
At the moment, I can add animals to the...
|
Forum: Other Programming Languages
Nov 8th, 2005, 4:31 AM
|
|
Replies: 1
Views: 184
Active windows?
Hi,
What is it called when you have a window and you cannot access any other windows until you close that one? Like when you have a dialog and if you click outsdie it it makes the noise and the...
|
Forum: Delphi
Nov 4th, 2005, 7:42 AM
|
|
Replies: 1
Views: 345
|
Forum: Delphi
Nov 3rd, 2005, 6:23 PM
|
|
Replies: 1
Views: 345
Linking 2 tables
Hi,
This is hard to explain so i'll give all the background information.
I'm making a system that can be used by a reptile shop to keep track of the animals etc. Each animal has a feeding interval...
|
Forum: Delphi
Oct 27th, 2005, 4:57 PM
|
|
Replies: 7
Views: 569
Yes/ No Dialog
Hi, how do I make a basic yes/no dialog that comes up and confirms that I wanted to actually press the button I did?
Thanks.
|
Forum: C++
Aug 20th, 2005, 12:43 PM
|
|
Replies: 2
Views: 200
Visual forms in C++?
Hi, So I first started learning programming at college. First learning pascal and making dos programs, and the moving onto delphi.
So I've decided to teach myself C++ and so far I've basically...
|
Forum: Delphi
Aug 20th, 2005, 7:27 AM
|
|
Replies: 12
Views: 546
|
Forum: Delphi
Aug 20th, 2005, 6:06 AM
|
|
Replies: 12
Views: 546
WOOOHOOO!!! Ok, this works! :D I've tried all...
WOOOHOOO!!! Ok, this works! :D I've tried all possible cases and it works! :D
I took your idea into acount Ooble, and had a field called Active in the shift table. When no active shift is found for...
|
Forum: Delphi
Aug 19th, 2005, 6:16 PM
|
|
Replies: 12
Views: 546
Sokay...I have yet again recided to think of...
Sokay...I have yet again recided to think of another way to clock in without sorting them and I think I've found a way that's simple and that works. I'll post it when I've tested it n stuff.
|
Forum: Delphi
Aug 19th, 2005, 4:41 PM
|
|
Replies: 12
Views: 546
|
Forum: Delphi
Aug 19th, 2005, 3:36 PM
|
|
Replies: 12
Views: 546
Index in a table
How do I create an index to sort a table?! I have created an index using Database desktop, which is what I used to create the tables. However when I add a new record it then tells me that the index...
|
Forum: Existing Project Development
Aug 19th, 2005, 3:33 PM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 19th, 2005, 3:02 PM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 19th, 2005, 2:13 PM
|
|
Replies: 39
Views: 636
OH. MY. GOD. This is pissing me off too much...
OH. MY. GOD. This is pissing me off too much now.
It works with 1 employee and 1 shift. But for some reason when I add another employee it goes straight to clocking them in even if they should be...
|
Forum: Existing Project Development
Aug 19th, 2005, 1:12 PM
|
|
Replies: 39
Views: 636
Those output statements really work! thanks! :D...
Those output statements really work! thanks! :D i've worked out where the errors are and I have corrected them.
I now have a delphi question, Ooble? You seem to know delphi.
I need the correct code...
|
Forum: Existing Project Development
Aug 19th, 2005, 12:00 PM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 19th, 2005, 11:09 AM
|
|
Replies: 39
Views: 636
Yes I was just showing that the outer if...
Yes I was just showing that the outer if works.
I've followed it through many times and it seems fine to me, yet when i enter a valid employee ID it somehow freezes, and i can't figure out where it...
|
Forum: Existing Project Development
Aug 19th, 2005, 9:22 AM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 19th, 2005, 8:01 AM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 19th, 2005, 7:54 AM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 19th, 2005, 7:38 AM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 19th, 2005, 7:12 AM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 19th, 2005, 6:16 AM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 18th, 2005, 7:39 PM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 18th, 2005, 7:04 PM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 18th, 2005, 3:24 PM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 18th, 2005, 3:01 PM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 18th, 2005, 2:42 PM
|
|
Replies: 39
Views: 636
Ah I can't believe I've been so dumb! I've...
Ah I can't believe I've been so dumb! I've figured out the best way to do it is to have a table:
Tbl_shift(Shift_ID, Date_, Time_In, Time_Out, Time_Worked, Employee_ID)
Time worked will be...
|
Forum: Existing Project Development
Aug 18th, 2005, 1:42 PM
|
|
Replies: 39
Views: 636
|
Forum: Existing Project Development
Aug 18th, 2005, 1:17 PM
|
|
Replies: 39
Views: 636
|