Be a Supporter!
Response to: Database In C Is Killing Me! Posted November 29th, 2007 in Programming

Does the void and int at the start of the function make a difference? The specification lists them as being ints..

Database In C Is Killing Me! Posted November 29th, 2007 in Programming

Ive been given this assignment to do, and I have no idea how to go about it. Unluckily the coin toss gave me module B to do which is the hardest!

Module B

Overview:

This module performs the storage and retrieval of all records. The records reside in memory only. On demand, data are passed back to the user-interface module for display.

This module implements only the records database, not user interface.

Module B Application Programming Interface (API):

Module B should provide the public routines specified below. These routines must not use the user interface in any way except in case of debugging. Nothing else is acceptable.

In addition:

Module B must use one file of code only named: database.c

All function prototypes for module B must be declared in a header file database.h, so that userInterface.c can include this.

The following definition must be also provided in database.h:

typedef struct {

     char surname[21],   /* student surname  */

     char firstname[21], /* buffer to receive message */

     char studentID[7],  /* student identifier */

     int  studentAge     /* age of student in years */

     } STUDENT_RECORD;

Public routines:

studentRecordNew( )
NAME
studentRecordNew ( ) create a new student record

SYNOPSIS
Int studentRecordNew
(STUDENT_RECORD * studentRecord ; /* IN: the data for the new record */)
DESCRIPTION
This routine creates a new student record in the database. It checks if the student already exists.

RETURNS
True: if a new record is created.
False: if student ID already exists. No record is created.

studentRecordUpdate( )
NAME
studentRecordUpdate ( ) update a new student record

SYNOPSIS
Int studentRecordUpdate
(STUDENT_RECORD * studentRecord ; /* IN: the update data */)
DESCRIPTION
This routine updates a student record in the database. It checks if the student already exists. Any parameters that are set will be used to update the record. Unused string parameters must be set to the empty string '\0'. Unused studentAge parameter must be set to -1.

RETURNS
True: if the record is updated.
False: if student ID does not exist or any other problem occurs.

studentRecordGet( )
NAME
studentRecordGet ( ) returns a student record

SYNOPSIS
Int studentRecordGet
(char * studentID; /* IN: id of record to be retrieved */
STUDENT_RECORD * studentRecord ; /* OUT: the student record data */)
DESCRIPTION
Takes as input parameter a possible student ID. The routine checks whether the student exists. If the student exists then the routine returns the data in parameter studentRecord. This function can be used to get the data or just to check that a student exists.

RETURNS
True: if the student exists in the database.
False: if student ID does not exist.

studentRecordDelete( )
NAME
studentRecordDelete( ) deletes a student record from the database

SYNOPSIS
Int studentRecordDelete
(char * studentID; /* IN: id of record to be deleted */)
DESCRIPTION
Takes as input parameter a possible student ID. The routine checks if the student exists. If the student exists then the routine deletes the student from the database.

RETURNS
True: if the deletion is successful.
False: if student ID does not exist.

I would really apreciate any help you can give me. My problems are mainly:

I have no idea what should go in the header file and
How to store the records (array? etc)

Response to: Is anything off limits for comedy? Posted November 21st, 2007 in Politics

At 11/21/07 10:19 PM, PhoenixTails wrote: Shakespeare said it perfectly : Comedy is tragedy + time.

lol. Thats an equation I like.

Is anything off limits for comedy? Posted November 21st, 2007 in Politics

Someone told a Madeline McCann joke at uni today. Half the class laughed, half just sat, stony faced.

This got us talking; Is anything ever too taboo for comedic purposes?

I mean, look at 9/11. At the time no one could have thought of laughing at anything related to it, but some comedians have performed routines related to hijacking / Ground Zero / Freedom tower.

A secondary point for those who say nothing is off limits; how long does it take for the tragedy to lessen before you can laugh?

MIPS anyone? Posted November 2nd, 2007 in Programming

Is there anyone in this forum that can understand the MIPS architecture? Im stuck on quite a lot of it and any help would be appreciated!

Response to: 3D in non CGI cartoons Posted October 21st, 2007 in General

You have no idea how long thats been bugging me. Thanks man!

Y'all be in the know :P

3D in non CGI cartoons Posted October 21st, 2007 in General

Has anyone noticed that recently in family guy and since the beginning in futurama, the animation retains the cartoon style, but the 3-d is a LOT smoother?

http://www.youtube.com/watch?v=a2CBGeTlO Fo

That shows an example of it right at the end. The tie fighters and death star illustrate what I mean. Does anyone know how they achieve the 3-d without looking CGI, like this:

http://www.youtube.com/watch?v=-_3KpMbsl b0&mode=related&search=

Anyone know how the animators get that effect?

Response to: Vital flash component missing. Posted October 20th, 2007 in Game Development

At 10/20/07 09:19 AM, UnknownFury wrote:
As well as that - think what the movie/game/whatevers going to be like at the end of all your work. And imagine it in that number one spot on ng ^^

Mmmm. Delusions of the top spot.

Vital flash component missing. Posted October 20th, 2007 in Game Development

Theres an important aspect of good flash movies missing in my case.

Motivation!!

How do you all keep your mind on animating once you hit a wall? I keep going back to my animations, seeing the amount of work that needs done to finish them and end up buggering off to play STALKER after 5 minutes. I wish there was some way to keep on track!!

Response to: Dethklok Fan Klub Posted October 15th, 2007 in Clubs & Crews

This club is the most metal thing I ever heard in my whoe life.

High five!

Response to: A bit to far, do you agree? Posted September 28th, 2007 in Politics

**now irretrievably linked

Sorry, but the way i posted before made it seem like their was hope for the swastika :p

Response to: A bit to far, do you agree? Posted September 28th, 2007 in Politics

At 9/28/07 01:21 PM, Schmut wrote: Waste of money.
The building doesn't look like a Nazi symbol; it looks like a sun symbol which was adopted by the Nazi's. A symbol is not evil!

No but that symbol was hijacked by the nazis and now represents that evil in the eyes of the world. Whatever it may have represented in history, it not is irretrievably linked to the third riech. Look at it this way; its already had multiple uses, why not use it now. What would happen to a company that adopted the swastika as their logo?

Response to: Flash Error - Need Emergency Help Posted August 27th, 2007 in Game Development

Sorry for the double post but I should mention ; when I say every other symbol, I meant every other symbol of type "graphic"


Has anyone run across this error and do you know how to fix it.

All symbols appear fine in the library preview, but once placed on the stage becom an instance on a single symbol.

Specific example - ive got a bar scene, so I have an outdoor shot and need a pool table for the interior. once i draw the pool table it appears fine (lines and fill ATM)

as soon as i convert to symbol and name it poolTable, it becomes an instance of outdoorBar and refuses to change.

Every other symbol in my library also becomes outdoorBar instances as they are dragged onto the stage.

PLEASE HELP!!!!!!

Response to: Episode Length Posted August 26th, 2007 in Game Development

At 8/25/07 02:04 PM, Snubby wrote: I'd cut it to 5 and release more. More awards, more exposure, and 10 minutes can be a little long.

Yeah but my main problem with releasing more episodes was that there would be more cliffhangers that piss you off.

The action is fairly constant, and every ending having a tank rattling towards the hero doesnt help.

Response to: Hippies Posted August 26th, 2007 in Politics

At 8/25/07 12:59 PM, ImaSmartass2 wrote:
I don't use their products

You do use corporate products. The point made before is that youre on a computer, a corporate product. And also, youre probably running windows or mac OS. Products of 2 Giant corporations.

No, but wouldn't you be mad if somebody killed a human and wore it's skin as clothing?

Yeah, but the folk that do that are few and far between. People wearing ANIMALS skin however, is a different matter. Not saying I agree with it, but I think any PETA member who thinks its acceptable to destroy someone elses property should be hauled through the legal system.

Its up to the fur wearer to decide how society views them. Most people look down on fur wearing so a lot of high profile celebs dont wear them any more. A change in attitude does so much more than a bucket of red shit.

Pot does not case psychosis, merely gets you high and is not an addictive drug, smoking tabacco is more harmful for your health

And you tell others not to speculate on things they know nothing about.

"The short-term effects of marijuana use include problems with memory and learning; distorted perception (sights, sounds, time, touch); difficulty in thinking and problem solving; loss of coordination; and increased heart rate, anxiety, and panic attacks."

"People who smoke marijuana often have the same respiratory problems as cigarette smokers. These individuals may have daily cough and phlegm, symptoms of chronic bronchitis, and more frequent chest colds. They are also at greater risk of getting lung infections like pneumonia. Marijuana contains some of the same, and sometimes even more, of the cancer-causing chemicals found in cigarette smoke."

The physical effects only from http://www.drugs.com/marijuana.html

Spectulation about hippies

Its not speculation when you yourself have told me of the antics of PETA

Your source, don't tell me you just made that all up based on things you might have heard

Ive linked to my source. Ill thank you to do the same. Where do you get your info that pot is harmless?

No, but be nicer to the trees, because if lose plant life, live cannot exist on earth

You have no right to slag on grammar.

Response to: Hippies Posted August 25th, 2007 in Politics

At 8/25/07 12:34 PM, ImaSmartass2 wrote:
2. Because Industries usually are bastard companies to make mmoney at the expense of animals and nature

OMFG T3H CORPORATIONZ AR3 T3H 3N3MIEZ! Yes corporations sometimes have loose morals, but they only got to be corporations through the popularity of their product or service and that comes down to the common man and woman. So blame yourself.

3. It's not Cow blood, Peta does stuff like that but to people with fur coat and they spill fake blood on it which I think is just considering they kill an exoctic animal for fashion

Its destruction of personal property - a crime. What if I say I dont like that SUV, becuase thats also bad for nature. I can take a crowbar to it and throw shit at its owner then? And expect no repercussions?

4. Joints are basically harmless

Yeah apart from all the psychosis. Dont tell me its harmless just because you enjoy a toke every now and then.

5. Get your Facts Right

About what?

6. Provide a link

To What?

7. Don't spectulate about things you know nothing about

Fair enough

8. Fix your Grammer

No argument

9. We should hug trees more often because they provide our oxygen supply

Why, will that make them give off more oxygen? Appreciate, yes. hug? Dont be fucking rediculous!

10. Next time don't make me write such a long list

Next time dont bother if it offends you so!

Response to: Episode Length Posted August 25th, 2007 in Game Development

Ok, cool. Thanks guys.

I just wondered if a longer ep length would have been better since the action is fairly constant. Less episode breaks would mean less piss-you-the-hell-off cliffhanger endings.

So I can take a break from serious animating and do the bloopers now:P

Response to: Computer Viruses Posted August 25th, 2007 in Politics

Dude do you just come onto this forum to rant? I already posted in your "Hippies" topic and that was another rant.

Anyway with refrence to this one, you start out by slandering people you dont know. Way to act mature. Im on a computer systems course (not that I want to be, I wanted to be a games developer) and not one guy on our course is a fat, sweaty guy. Yes we're mostly nerds but what can you do.

So if your situation is right, where a company releases a virus and then the cure for it, please tell me why there are multiple Internet Security Providers.

If Macafee release a virus and code a firewall update, how do Norton and the others also release simultaneous patches? If the name of the game is making money, theyre not going to co-operate between companies.

Your seeing conspiracies where there are none. Stop watching the X files.

Response to: Hippies Posted August 25th, 2007 in Politics

I dont really see the necessity or point of your post. I mean, I agree with you on a few of the points about rediculous levels of protest at such things as animal rights (I mean there was the example a year or two back in the UK where they exhumed the corpse of an animal tester) but where was the opener to debate.

It seems you just posted to rant (not very coherently) about your hatred of hippies. Try for a dit of reasoned debate next time man :P

Episode Length Posted August 25th, 2007 in Game Development

How do all.

Im in the middle of making a flash based in the warhammer 40k universe. I was just wondering what you all reckon would be the best length for an episode?

Ive got enough animation for a 10 minute release (not including credits and any opening titles)

Do you reckon that would be enough or would a longer episode length be a better option?

I can see the overall project running to around maybe an hour or more as the story evolves.

Response to: Define Suicide For Me Posted July 25th, 2007 in Politics

Which is why i was angling at getting folk speculating. What (do you all reckon) is classed as suicide in the eyes of church / god whatever.

Yes, granted no one can commit suicide then come and tell us "BTW, yall do go down, down, down, while the flames burn higher"

Its purely speculation!

Response to: Define Suicide For Me Posted July 25th, 2007 in Politics

At 7/25/07 07:32 PM, TonyTostieno wrote: I don't think that killing yourself gets you sent to hell

Apparently its seen as you trying to challenge gods plan, so it would incur an eternity in the pit.

Yes, the situation i described would be you putting yourself into a situation you know will result in death, but its not you that pulls the trigger on the fatal shot.

Hence the ambiguity.

Define Suicide For Me Posted July 25th, 2007 in Politics

I reckon this is one for the religious types, since strict rationality would not define this as suicide.

I got bored at work and decided to have a root through the abandoned DVD Drawer. The only remotely watchable thing in there was Constantine so I stuck it on.

When I was watching the part where the priest says "y'alls sister is goin to hell for jumpin off that there roof" I got thinking. Say youve decided you dont want to live, but for whatever reason cant / wont kill yourself in the traditional sense.

So you head down to the sports shop, buy a blank firer and a mag of blanks and stroll down to your local bank. You go in and fire into the air. The alarm is tripped and when the armed response units arrive, you open fire. You know youre not about to commit murder - theyre blanks! But the law doesnt know that and hoses you with automatic fire.

You knew that this scenario ends up with you dead, but you technically didnt kill yourself.

How do you reckon that one stands up? Theologically.

Response to: Bush deploys Transformers to Iraq Posted July 19th, 2007 in Politics

At 7/19/07 06:13 PM, IllustriousPotentate wrote:
At 7/19/07 12:13 PM, Memorize wrote: NBC, Newsweek, CNN.

You all know they want us to lose.
We can't lose. We've already accomplished our mission. Typical of you left-wing America-haters to try to rewrite history to make it look like we're still fighting a war.

Umm, I dont want to be the one who points out the flaw here, but if youre not fighting a war, why are your (and our) troops fighting and dying on foreign soil?

Response to: Failed states on African continet? Posted July 10th, 2007 in Politics

I guess what it boils down to is that a lot of the mass population are in dire poverty, and those in charge keep it that way. Most of the foreign aid money that comes in is spent on the military, meaning that the poor stay poor while the rich get more and more armed.

Not a good state of affairs to have
Response to: Scientific Proof for Islam? Posted July 10th, 2007 in Politics

With regards to what you were saying about the human body and how neat everything is...

Something as complex as the human form didnt happen overnight. Evolution is pretty much given fact, but even looking around us we can see evidence of simple beings right up to humans.

Amoebas still exist and they are very basic life forms. Then you can move on up the chain, seeing things become more and more complex.

What im trying to put across is that no one suggests that the complexity of the human form is an accident, but it doesnt constitute proof of a higher being. It shows how DNA reacts to changing environments in order to survive, eventually becoming as complex as the human form

Worked too......
Response to: political judgements Posted July 10th, 2007 in Politics

At 7/10/07 03:17 PM, Tomsan wrote:
"this country donates a billion dollar a year to feed the hungry. We are the most giving nation in that area in the world, and I am proud to be able to say that. This is no contest who is the most generous. I just wanted to day it. We are generous. we shouldnt show that off. but we are. we are very generous."

Im probably going to be slayed for referring to the Bible here, but isnt that a prime example of a still relevant parable? The rich dude at the temple who gave thousands of coins that he could afford and lording it over everyone...

Parts of it are still relevant it seems...
Response to: Diplomatic Immunity Posted July 10th, 2007 in Politics

At 7/10/07 05:35 PM, Korriken wrote: if you go into another country and break the law, you deserve the punishment you get.

Thats iffy territory I reckon. What if youre caught and arrested doing something illegal in a foreign nation, but said activity is legal in your own country?

Granted ignorance is not an excuse, but it does raise a new point...

Response to: Opinions on Gordon brown? Posted July 10th, 2007 in Politics

At 7/10/07 07:06 PM, UWDarDar17 wrote:
Jeeze. Wait a while before you judge.

Indeed. I dont think hes made his position clear on the major issues yet. Once he does Ill get an opinion of him. Remember he had to deal with a terrorist incident on home soil less than 24 hours into the job.