corsasport.co.uk
 

Corsa Sport » Message Board » General Chat » C Programming » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

Ian

posted on 18th Jul 04 at 22:17

Just remembered some parameter passing stuff I did at uni, its not the exact stuff I covered but you could do a lot worse than having a quick look over it, see if it ties in with what you're being assessed on.

http://www.csc.liv.ac.uk/~grant/Teaching/COMP205/paramPassing.html



[Edited on 18-07-2004 by Ian]


Joff

posted on 18th Jul 04 at 20:43

http://publications.gbdirect.co.uk/c_book/

Copying code is ideal if you can read and understand what's going on and why something's been done in a certain way, but it's careless to submit something you've got no idea on because it's likely you'll be questioned on certain parts!


Aaron02

posted on 18th Jul 04 at 20:38

www.programmersheaven.com, this is a good forum to ask the pro's questions on many programming languages

i've learnt alot from the people on that forum


Andrew

posted on 18th Jul 04 at 20:33

Bloody hell they want that done quick :lol: I've got an referal maths exam to do but that's not until August 16th.

It's a nice and easy course-work to do that mate. I'll swop maths for c programming anyday :D There's loads and loads of books about you can just *copy* from :lol:


Joff

posted on 18th Jul 04 at 20:33

How much of C do you understand?

Concepts about datatypes are universal to pretty much any language, with only the syntax for their use changing.
There should be plenty of on-line lecture notes giving good pointers (ahem) for areas you should be investigating.


Dom

posted on 18th Jul 04 at 20:31

aye, like ian said textbox stuff. I dont know C, but know other programming languages, and it looks pretty basic when you break the questions down.

i mean, functions...dead easy question, one reason is that it allows you recall an routine without having to repeat the code more than once etc

2nd question about declarations is pretty easy..dunno bout the first part, but the 2nd part of the question would be to write the code used to access the data storage (your using, database i would believe).

last two question would involve demostrating the code and explaining it (copy out of a textbook mate ;)).

and the first question is pretty easy too, i would just show screen grabs of your data storage method :)


however, tbh mate, all of this should have been learnt during class ;) eitherway, i would speak to your tutor if your unsure of stuff :thumbs:
also, just do a google search for C data storage methods and databases etc


luca2020

posted on 18th Jul 04 at 20:21

Thanx ian and joff, ive tryed 2 librays at home and they have little on programming, i did manage to find 2 c books tho, 1 called 'The C Programming Language' by Brian W.Kernigham and another book called 'Turbo C/C++' by Herbert Schildt

Do you have any recomendations of the top of your head?

thanx for the help anyway lads


Joff

posted on 18th Jul 04 at 10:47

So basically you need to investigate what data types are available and what functions are built into C for storing/accessing arrays, etc.

Why not look for example stock system/shopping cart code and see what datatypes they're using.


Ian

posted on 18th Jul 04 at 10:42

Thats all fairly textbook stuff, nothing a bit of research won't fix.


luca2020

posted on 18th Jul 04 at 09:44

ur so helpful mate, thanx

and why aint computers my shit? because im usless at c programming means im shit with computers? i got over 65% on every other subject with out trying in my 1st year at uni, tit


Russ

posted on 18th Jul 04 at 09:25

i can help..

do another subject, pc's aint ur shit...


luca2020

posted on 18th Jul 04 at 01:22

well i have referal work at uni to be in for next friday, and im usuless at c programming, ive got a few books but dont really answer the questions i gotta answere

Here are the questions:

Write an essay entitled "Data Storage and Functions in C". Your essay must have a maximum
length of 5 sides and cover the following topics:

1 Data Storage
Explain, using diagrams to support your explanation, how you might arrange
to hold information about stock items in a shop where:
a. The information held for each item should include:
Item name (e.g. Corn Flakes, Coca Cola)
Item details (e.g. 500 gm packet, six pack)
Price
Barcode number
Number in stock
Minimum stock level.
b. The shop may carry up to 1000 stock items.
20 marks

Give examples of appropriate C declarations to do this, and examples of C
code which to put information into the store and use information from the
store.
20 marks

2 Functions
Outline the reasons for using functions in a program. 20 marks

Explain, with examples, how data can be passed into a function using
parameters. Your explanation should cover passing both single values and
arrays.
20 marks

Explain, with examples, how data can be passed out of a function using
parameters and return statements. Again, your explanation should cover
passing both single values and arrays, as well as the data structure you
generated in part 1 above.
20 marks

i can do the 1st question of part 2, thats it lol, any help anyone?


Ian

posted on 17th Jul 04 at 19:26

Go on...


Andrew

posted on 17th Jul 04 at 18:47

I'm not good at it but know a little bit


luca2020

posted on 17th Jul 04 at 18:45

Is anyone good at it?

if so please say i need your help badly