This is the Message Centre for MaW

Help me pleeeeeeeeeese!

Post 1

Zak T Duck

Do you have any idea how I can write a C program to manipulate two arrays, allowing the complement, union and intersection of them to be output to the screen? So far I can just about get the elements into the arrays, but manipulation has been a real non starter. Any help is greatly appreciated with open arms.

Croz


Help me pleeeeeeeeeese!

Post 2

MaW

Hmm... I can't say I've tried that. I'll have a look at it. C or C++? I normally use C++ but I suppose for array work it makes little difference apart from the output routines and the header files included.
I take it this is complement, union and intersection as defined for sets? Should be possible. I'll try to remember to look at it tomorrow. I've got time.


Help me pleeeeeeeeeese!

Post 3

Zak T Duck

I think I've managed to get round the problem slightly. Instead of passing the arrays into another array during manipulation, I just output the manipulation to the screen, so it looks just the same to the user. Thanks anyway.


Help me pleeeeeeeeeese!

Post 4

MaW

Okay. I'm going to continue thinking about the problem though, as I'm doing stuff on sets at the moment. And it's something a bit more interesting than my programming coursework.


Help me pleeeeeeeeeese!

Post 5

Zak T Duck

Let me guess, it wouldn't be a java bubble sort by any chance would it?


Help me pleeeeeeeeeese!

Post 6

MaW

No, they don't think we're capable of that yet. Lots of things about calculating the effective radius of bicycle wheels and so forth. It's supposed to teach us loops and methods and such things, but how can I learn what I already know? Hmm?

* hits the lecturer *


Help me pleeeeeeeeeese!

Post 7

Steve

Your lecturer is really a Zen Buddhist, teaching you the meaning of patience. "Now Grasshopper, we will meditate by writing pointless code. I want you to think of the wheel of a bicycle..." smiley - smiley


Help me pleeeeeeeeeese!

Post 8

MaW

No, that's my Tai Chi teacher. My lecturer is a mad Greek who reminds everyone of Dr. Nick from The Simpsons. If Dr. Nick had a Greek accent.


Help me pleeeeeeeeeese!

Post 9

Zak T Duck

One of the lecturers at Liverpool CompSci has an uncannily resemblence to Sideshow Bob, so that's what we call him behind his back


Help me pleeeeeeeeeese!

Post 10

MaW

Oh dear...


Key: Complain about this post

More Conversations for MaW

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more