ftp://tricks:tricks@67.18.198.26/patrick/engine.zip
the malloc on line 86 of nav.c returns null while, not only is its parameter valid, but, i also use the exact same implementation nearer the top of the file.
---
for any of you who might keep track... yeah, i revived my oldest project again...
so the topic is dynamic allocation.
this is the struct im working with
typedef struct
{
int RegionCount, NameLength;
char *name;
struct
{
int TownCount, NameLength;
char *name;
}*region;
}*world;
and this is the code that uses it
world gia = (world)...
enum's are very nice, they make organizing and indexing into complicated arrays painless, and they make the code a little more logical for other readers.
but what im curious about is: what would any of you say would be considered using too many enumerators?
žÅNžÅ
so, we want our polynomials in the "proper" order (descending exponents) right? of course. :) or so my algebra 2 book says. *shrug*
anyway, to do that i have a dynamically alloced 2d array holding each of the terms of the polynomial as a character string. currently, im attempting this to sort...
can someone explain to me why these two statements are different?
while(!(choice=='u'||choice=='U'||choice=='d'||choice=='D'))
while(choice!='u'||choice!='U'||choice!='d'||choice!='D')
sorry to be asking such a moronic question, but i swear ive used similar statements to the second one before...
does anyone know what the maximum amount of memory malloc() can pull is?
i know it fails when i go up to and past a gig. i have 384 megs of system memory and my page file is maxed out at 512 megs.
also, just because im already writing and youre already reading... ^_- when i ask malloc to do...
just because i felt like trying, i wrote this app to translate roman numerals back and forth. no, this isnt homework. :P just practice.
anyway, the way i went about doing it is just (for from arabic to roman) getting the length of the string and using that as a basis to convert one decimal...
who here has played adventure? how about the 14 million clones? well, im writing another one. except mine is just a tad different. im not claiming excellence, just having fun. :)
anyway, this will be a text rpg with windows for the main text i/o, inventory, stats, a map, etc. now, everything...
i created a gui rc in vc6 using the visual resource editor. i know ill need an accelerator for hotkeys and such, but i cant even tab between the controls on the dialog box. i know how to set the tab order, but i dont know what the tabstop attribute does, and im sure that doesnt help.
so, using...
someone just gave me an ati radeon 9000 for the mac. wonderful, i would love to use it in my pc. i tried flashing the bios but it said it wasnt the right card and i couldnt force it to flash. also, when i tried to back up the original mac bios, the file size came out 32k when the pc bios is...
how would one go about sorting (by whatever value) a linked list?
also, i havent the slightest idea how to save and load a linked list to and from a file in binary mode because fwrite() obviously wont resolve pointers.
žÅNžÅ
i installed slackware and did it all correctly. im pretty much going for text only without the distraction of the net or games to finish my study of C, so i installed slak 8.1 on my secondary machine. it boots and logs in all fine (even gives me a fortune, w00t) but when i go to compile the...
a fresh installation of slackware (and done correctly). and it gives me this
INIT: cannot execute /sbin/agetty
over and over until it kills all of the runlevels. then, obviously, i cant log in to see if agetty exists or what. and ive attempted installation 5 times with the same result. what...
i just threw together a slackware box from spare parts. yay, a celeron 533 and a banshee. but, i cant find any of the accelerated glide libraries or drivers for the banshee. damnit, i wish 3dfx was still around. *shrug*
anyway... help? žÅNžÅ
ok, a while back i asked about an inventory system and got the answer: linked lists. woohoo, theyre working wonderfully. but... i can't figure out how to remove members of the list without screwing the whole thing up. i know the simple answer would be a doubly linked list. then i could just do...
how would i go about changing the colors in the dos window under win2k? i was trying the [1;3;6m things, but as you probably have assumed, those didnt work :)
any help? žÅNžÅ
does anyone know how to print colored text to the terminal in win2k or some other non-9x windows? i
i tried
printf("\033[1;36m");
and it came out literally žÅNžÅ
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.