Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: zanza
  • Content: Threads
  • Order by date
  1. zanza

    malloc() returning null for no reason

    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...
  2. zanza

    being self taught leaves too many holes...

    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)...
  3. zanza

    enum's... convinient, but used too often?

    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žÅ
  4. zanza

    using qsort() on a dynamically allocated 2d array

    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...
  5. zanza

    C Boolean logic... not being very logical

    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...
  6. zanza

    max allocatable size for malloc()?

    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...
  7. zanza

    better way to do it?

    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...
  8. zanza

    making images sized to DLU's

    is there a way i make an image that is either sized in DLUs or at least will stay the same size in a window as the resolution changes? žÅNžÅ
  9. zanza

    dynamic bitmap manipulation (in C, in win32)

    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...
  10. zanza

    tabbing between controls in VC6

    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...
  11. zanza

    radeon 9000... could a mac version work on the pc?

    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...
  12. zanza

    sorting and saving a linked list

    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žÅ
  13. zanza

    gcc is telling me there is no such file as stdio.h

    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...
  14. zanza

    INIT: cannot execute /sbin/agetty

    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...
  15. zanza

    3dfx, glide and banshee stuff

    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žÅ
  16. zanza

    oookiedokie... doubly linked lists?

    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...
  17. zanza

    dos colors?

    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žÅ
  18. zanza

    printf() color in win2k

    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žÅ
  19. zanza

    file associations with visual studio

    how do you associate .c .h etc files to visual studio? i know how to have windows do it, but when i installed vs it didnt associate them. žÅNžÅ
  20. zanza

    syntax error..... without reason?

    grr... why does it tell me this? current = head; while(current->next != NULL) current = current->next; -->new = (wptr*)malloc(sizeof(struct Weapon)); current->next = new; new->next = NULL; current = new; c:\projects\rpg\inventory.c(37) : error C2059: syntax error : ')'...

Part and Inventory Search

Back
Top