this is so strange, i have tested almost all inputs and i can't find what gives it a run time error... :(
could any patient person pls tell me what's wrong with my code :wink:
[c]#include <stdio.h>
#include <string.h>
typedef char string12[13];
typedef struct
{
int nSpent,
nGiven,
nNetWorth ...
Search found 4 matches
- Mon Dec 08, 2003 9:54 am
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 47352
- Sat Nov 15, 2003 9:13 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108632
- Sun Nov 09, 2003 5:23 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108632
HELP on 101 [Run time error but it runs fine in my comp!!!]
[c]/*************************************************
_
_ |_|
|_| |_|
|_| _ |_|
|_| |_| |_|
|_| |_| |_| - pBlockRun
| | _ |
|_|-|_|-|_|-|_|
|
pPosHead
This is my program representation of the blocks.
I used linked list to connect the blocks ...
_
_ |_|
|_| |_|
|_| _ |_|
|_| |_| |_|
|_| |_| |_| - pBlockRun
| | _ |
|_|-|_|-|_|-|_|
|
pPosHead
This is my program representation of the blocks.
I used linked list to connect the blocks ...
- Tue Oct 21, 2003 3:26 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108632
maybe this would help
I think the result will be:
0: 0 1 4 6
1:
2: 5 2
3: 3
4:
5:
6:
0: 0 1 4 6
1:
2: 5 2
3: 3
4:
5:
6: