Started 1 week ago (2009-11-20 13:33:00)
by nattylife
Quote: Originally Posted by spiriad Hello there,
I have the following situation : I have a moving ball in a rectangular 2D chamber. When the ball touches the walls of the chamber it changes it's direction. It is simple to implement the ball movement when the chamber is empty ( it has only
4 walls). My question is , how to I implement the movement of the ball in a ...
Started 1 week ago (2009-11-21 10:23:00)
by nebelung
WTF is this? some kind of a hack?
Code:
typedef struct{
stackElement *elements;
int top;
int maxSize;
} extern stack;
Seriously though, this looks like a very bad design.
Quote: Also, if I get this working, is it an
Abstract Data Type?
A true ADT does not reveal the details of the data structure of it's ...
Started 4 days, 22 hours ago (2009-11-23 12:16:00)
by Nyan
in
gcc, compile with gcc -Wsequence-point file.c
Google sequenc-point.
Edit: Read this .
Started 1 week, 2 days ago (2009-11-19 06:58:00)
by sizablegrin
Read the "How to Post..." thread, which you should have done first, then repair your post.
Started 6 days, 8 hours ago (2009-11-22 02:31:00)
by Nyan
Read here .
Your code needs C99
compiler or just change to
Code:
double x[N+1];
double y[N+1];
double xl[N+1];
double xr[N+1];
You can google difference between C89 and C99.
Edit : Read here too.
Started 4 days, 19 hours ago (2009-11-23 15:44:00)
by nattylife
what exactly isnt working?
compilation error? run time issues? output not what you expected?
need more detail on "does not work for me."
Started 1 week, 2 days ago (2009-11-18 15:51:00)
by mike65535
That's a lot of printing!
Do you also have to handle combinations with fewer than the "20"?
Started 1 week, 1 day ago (2009-11-20 05:48:00)
by xtian33
Started 1 week, 1 day ago (2009-11-19 23:57:00)
by Muzza
Hum, looks like homework or an assignment to me, but anyway.
What code have you written so far?
Have you even attempted to
just write down on some paper what steps you would need to take to solve the problem?
Started 3 days, 18 hours ago (2009-11-24 16:44:00)
by Tom2009