Forum: C Dec 11th, 2007 |
| Replies: 1 Views: 585 Halsell 228. That's a nice room.
You may find it useful to make your map and item file less complicated, i.e. each piece of data on its own line. Then you can read line by line, using fgets() for... |
Forum: C Nov 9th, 2007 |
| Replies: 15 Views: 1,356 Thanks so much for the help, everyone. Unfortunately, I'm still not understanding things.
I'm completely baffled as to how to read in each room from the map file and stick each room into its own... |
Forum: C Nov 9th, 2007 |
| Replies: 15 Views: 1,356 Okay, thanks.
This code is working 3/4 of the way:
void readRoom (roomStruct rooms[]) {
FILE *fin;
int i = 0; |
Forum: C Nov 9th, 2007 |
| Replies: 15 Views: 1,356 Sorry; I'm a bit of a coding forum noobie. I'll be more specific.
// maps.c //
0
Logan and Eliseo's Room
You are in Logan and Eliseo's room. It's full of people and it's really really loud.... |
Forum: C Nov 8th, 2007 |
| Replies: 15 Views: 1,356 Thanks for the re-organization...I should probably learn to comment a little more.
I tried the code you gave me, and it compiled wonderfully! Yay.
Then I ran it. It read in the number correctly... |
Forum: C Nov 8th, 2007 |
| Replies: 15 Views: 1,356 Hey folks --
DaniWeb has helped me a lot with various other programming projects, but I've run into a snag that I just can't get myself to understand. Hooray for vague compiler errors. Hopefully... |