Search:

Type: Posts; User: ender

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,195

    woops, forgot to write the code for the Character...

    woops, forgot to write the code for the Character class. I guess I'll give you a little bit more, but you have to promise to only let this wet your appetite, so you go out and discover how to use...
  2. Replies
    3
    Views
    1,195

    you may want to take this question to the c...

    you may want to take this question to the c board, as your current posting is to the c++ board. One might suggest, c and c++ are virtually the same thing, well I believe good ol' mr. stroustrup...
  3. Thread: hash tables

    by ender
    Replies
    0
    Views
    1,581

    hash tables

    Just looking for a good source for info on hash tables, the basics up through the most advanced probes, implementations, etc. If the source was geared towards c++ that would be great, but general...
  4. Replies
    3
    Views
    1,569

    thanks sorensen, I think I'll actually go try it...

    thanks sorensen, I think I'll actually go try it now. Just wanted a general idea of what would work before I went and started working on the class. elad, thanks but that doesn't help at all. I...
  5. Replies
    3
    Views
    1,065

    even better, modify your clear function, just...

    even better, modify your clear function, just overload it to call the flush() for you then call the one you listed, or add it to the one you listed...
  6. Replies
    14
    Views
    2,629

    if you want universal code look into RHIDE, it's...

    if you want universal code look into RHIDE, it's a gui built for the win. port of gcc/g++, it's fairly simple. I haven't used it in awhile, but I think once you get it running you just need to set...
  7. Thread: bit shifting

    by ender
    Replies
    9
    Views
    1,788

    we'll call the return value ret. int i = ret...

    we'll call the return value ret.

    int i = ret >> (sizeof(ret)-1);

    play around with that
  8. Replies
    3
    Views
    1,569

    Dealing with i/o streams in a class

    I'm writing a parser and I have a class tokenize which creates tokens given an input stream. In class tokenize I want to have an istream and ostream that reference the file passed to the...
  9. Replies
    5
    Views
    2,732

    Can't believe I missed this before, you're...

    Can't believe I missed this before, you're setting d=4 every time you call that, then since it equals 4 every time it is set to 0.



    It should be if(d==4) d=0; not if(d=4) d=0;

    ...see...
  10. Replies
    1
    Views
    2,576

    it occurred to me that you probably have no way...

    it occurred to me that you probably have no way of emailing me, it's [email protected] - no junk mail please, ty
  11. Replies
    5
    Views
    2,732

    well, I've not looked at this too thoroughly, but...

    well, I've not looked at this too thoroughly, but it doesn't look like direction ever changes in main. Therefore, it is always 0 in main, and always passed to move as 0....you need to either set it...
  12. Replies
    1
    Views
    2,576

    simple chat program

    This past summer I spent the majority of my free time writing a simple chat package for unix/linux which uses the message queue. This means it's only able to send messages to the same computer that...
  13. Thread: binary files

    by ender
    Replies
    10
    Views
    2,477

    so I'm long winded, sue me:eek: I was converting...

    so I'm long winded, sue me:eek: I was converting b10 to b2...
  14. Thread: binary files

    by ender
    Replies
    10
    Views
    2,477

    this is yet another waste of time to read from...

    this is yet another waste of time to read from yours truly:

    yeah, so where it has the astericks in my code above, that's not a pointer to a pointer to a pointer to a pointer...etc, the variable...
  15. Thread: binary files

    by ender
    Replies
    10
    Views
    2,477

    >just do file io operations in binary mode... ...

    >just do file io operations in binary mode...

    why didn't you post 5 mins. earlier? :p
  16. Thread: binary files

    by ender
    Replies
    10
    Views
    2,477

    you could write a function that would convert...

    you could write a function that would convert each character to a binary string, but I'm sure it's been done before. I'm not extremely familiar with all the printf() family of functions' conversions...
  17. Sticky: >now it depends what machine you are using... on...

    >now it depends what machine you are using... on most computers integers is >4 bytes but it seams like yours is 2 so the compiler uses the values that i have >written above....


    I'm just...
  18. Replies
    21
    Views
    3,161

    >now it depends what machine you are using... on...

    >now it depends what machine you are using... on most computers integers is >4 bytes but it seams like yours is 2 so the compiler uses the values that i have >written above....


    I'm just...
  19. Replies
    3
    Views
    2,151

    well, to get you started, you have to update your...

    well, to get you started, you have to update your pos_tortoise, pos_hare....this could be as simple as passing them by reference. Actually you should pass tortoise and hare, and completely drop your...
  20. Replies
    1
    Views
    2,105

    recursion problem

    Objective: write a completely inneficient recursion function that will copy two arrays and one that will compare two arrays.

    I'm given an algorithm I have to use, hell the prof even told us what...
  21. Replies
    2
    Views
    5,349

    The ones that say "cannot convert" blah blah blah...

    The ones that say "cannot convert" blah blah blah are occuring because you are trying to make a constant, the character 's' in this case equal a string of constants. This doesn't make much sense. ...
  22. Replies
    7
    Views
    1,832

    >easier than that. Use modulus operator. ...

    >easier than that. Use modulus operator.

    ...pot heads, such slackers....why make it so easy all the time? You could do something like this

    >#include "stdafx.h"
    >#include <iostream.h>
    ...
  23. Replies
    7
    Views
    1,838

    Screwed up here >bool checkDir(slot *s,int...

    Screwed up here

    >bool checkDir(slot *s,int x,int y)
    Meant to write either checkDir(int dir, slot *s) or checkDir(int dir, int x, int y), *s and x,y would be redundant. Actually it has to be slot...
  24. Replies
    7
    Views
    1,838

    after a few glasses of water my head has cleared...

    after a few glasses of water my head has cleared up a bit.... ok 2 things

    yes, checking the last pieced played would be a given, BUT, and that was a big but, do you want ai? If you do, this is...
  25. Replies
    7
    Views
    1,838

    ok, excuse me for being blunt...I will use the...

    ok, excuse me for being blunt...I will use the excuse that I am a bit intoxicated (which makes it hard to type) but what I see is crap...... so, the right answer, well no right answers, but a good...
Results 1 to 25 of 30
Page 1 of 2 1 2