Search:

Type: Posts; User: 691175002

Search: Search took 0.00 seconds.

  1. Reinterpret Cast to char* for Serialization?

    Some of my coursework material suggests using a reinterpret cast:
    outfile.write(reinterpret_cast <char*> (&Object_name), sizeof (Object_type) );To serialize an object. Is this as bad of an idea as...
  2. Replies
    14
    Views
    2,247

    I won't give direct answers but here are some...

    I won't give direct answers but here are some pointers:

    1. in this line what part is directly related to declaring the variable....
    and also what part is related directly to initializing the...
  3. Thread: byte help

    by 691175002
    Replies
    6
    Views
    1,151

    I almost never use bitshifts, but this is what I...

    I almost never use bitshifts, but this is what I am thinking

    int original = 0xf0f0f0f0;
    int mask = 0x0000000f;
    mask = mask << 3; // Assuming you want to change the third byte.
    int changed =...
  4. Replies
    24
    Views
    4,851

    Based on what you want, I would suggest a...

    Based on what you want, I would suggest a different language. As someone recommended, Visual Basic could be closer to what you want. I would also suggest Java as I consider Swing pretty...
  5. Thread: Advanced AI

    by 691175002
    Replies
    36
    Views
    8,800

    An AI that simply replies with an identical...

    An AI that simply replies with an identical canned response based on the positions of the pieces cannot be called intelligent, and would probably not be very effective either.
  6. Replies
    44
    Views
    6,168

    Thats because SDL wasn't designed to be used that...

    Thats because SDL wasn't designed to be used that way. Any per pixel manipulations like that are going to be extremely slow.


    #include <SDL/SDL.h>

    int main ( int argc, char** argv ){
    if...
  7. Replies
    3
    Views
    2,993

    Forward Declaration of Class Members?

    Hi,
    I am working on a simple particle system, and am having a problem involving emitters.

    The particle engine works roughly as follows:


    class Emitter;

    class ParticleEngine {
    void...
  8. Concatnating strings that are too long for one line

    Hi, this is a really simple question but I can't figure it out. If I want to pass a really long string to a function, it is really inconvenient to keep it all on one line since then I need to scroll...
  9. Well I am quite new to the entire pointer C++...

    Well I am quite new to the entire pointer C++ thing, so this seemed like good practice, can someone tell me if I am following through the program right?


    void g (int i) { //Passes a copy of the...
  10. I find OOP absolutely essential to any project of...

    I find OOP absolutely essential to any project of a moderate to large scale.

    Despite what people say, OOP isn't really about code reuse or faster development time. Its about organization.
    ...
Results 1 to 10 of 11