Search:

Type: Posts; User: Darkinyuasha1

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    758

    understanding setJmp

    Hello,

    I am trying to implement setjmp for functions.



    #include <setjmp.h>
    #include <stdio.h>

    jmp_buf arr[3];
  2. Well, I found out I was getting the values, but ...

    Well, I found out I was getting the values, but
    every third iteration the program would just hang or crash. It gets out of the extract with values, but it hangs after "going to next person"
  3. issue with retrieving values and run time error

    Hello, I have issues for the following piece of code :


    #include <string>
    #include <fstream>
    #include <iostream>
    #include <cstdlib>

    #define print( text ) std::cout << text << "\n"
  4. Replies
    1
    Views
    1,686

    Help with C++ Game Design patterns

    I was taking my old design, and trying to make a better tile game framework to use. I am kind of stuck with some advice or ideas to implement a better way for my input handle class to move or do w.e...
  5. Replies
    3
    Views
    926

    not sure if you're being rude or sarcastic, but I...

    not sure if you're being rude or sarcastic, but I wasn't looking for any practical use for this attempt. I did look up that compilers just replaces x with whatever value, but not sure why i didn't...
  6. Replies
    3
    Views
    926

    loop with #define

    Can someone explain to me why this doesn't work or breaks during compiled time.



    #define now_inc ( x ) ++(x); now_loop ( (x) )
    #define now_dec ( x ) --(x); now_loop ( (x) )
    #define...
  7. Help with creating custom audio function

    Hello,

    I'm trying to make a windows-focused , I will make it portable after , audio function that plays sounds according to my midi file. I know there is playsound, but it's not what I desire....
  8. Replies
    1
    Views
    1,220

    help with building

    Hello,
    I'm trying to build libevents on windows, I'm using mingw-64. Though, I have no clue how to even build it for the lib.
  9. Replies
    4
    Views
    3,016

    Yeah, I realize that as well. I did changed it,...

    Yeah, I realize that as well. I did changed it, but I still get the same error.



    #include <random>
    #include<iostream>
  10. Replies
    4
    Views
    3,016

    problems using Random_Device

    Hello,

    My question is if Random_Device works on windows . If so, what am I doing wrong in this implementation?



    #include <boost/random/mersenne_twister.hpp>
    #include...
  11. actually, no it didn't... it's weird.. I isolated...

    actually, no it didn't... it's weird.. I isolated the EzGame header /cpp and even with namespace it gives me multiple definition for each function.1176911770

    I even tried with the inline for the...
  12. Actually, you are right. Instead, I used an...

    Actually, you are right. Instead, I used an anonymous namespace for one part of the code...
  13. Getting multiple Definitions Error ( C++)

    1176411765117661176711768

    I keep getting Multiple definition errors with the function members from EzGames... I used this file before to make a simple game, and I'm trying to figure out why I keep...
  14. Here is a simpler version #include ...

    Here is a simpler version


    #include <string>
    #include <cmath>
    #include "SDL/SDL.h"
    #include "SDL/SDL_opengl.h"
    #include "SDL_image.h"

    void Opengl_init()
  15. problem with texture coming out white with alpha blend

    I am using 32bit PNG texture image with transparency. The rest of the code works other then the texture appearing white.


    this is my main code


    #include "EzGame.h"
    enum MOVEMENT { M_UP,...
  16. Replies
    2
    Views
    1,485

    My objective was just the sake of making an...

    My objective was just the sake of making an anti-keylogger program. My idea was just detecting keyboard hooks or asynchronous keys. Though, your suggestion gives me the idea of searching for un
  17. Replies
    2
    Views
    1,485

    Ideas on Anti-Keylogger

    I thought of one method is to unhook Hooked programs or to track the hook programs to eliminate. Though, I would like to make a program that would encrypt or create key noise to counter the key...
  18. Replies
    1
    Views
    1,278

    Simple win32 window class

    There is no compilation errors. Though, the program is unable to create window after registering it. Any suggestions?



    #include <windows.h>
    #include <string>
    using namespace std;

    #define...
  19. Replies
    6
    Views
    2,271

    I realize one error thankfully!! bool...

    I realize one error thankfully!!



    bool direction;
    for( ; --top > 0; )
    {
    if(array[top - 1]->right == array[top])
    direction = true; //right
    ...
  20. Replies
    6
    Views
    2,271

    Thank you for the help! I did ran into a new...

    Thank you for the help!

    I did ran into a new error with a new modified version of my AAtree. My search function goes into segment fault! I believe a pointer is lost somewhere ~_~



    template...
  21. Replies
    6
    Views
    2,271

    AA tree class help

    My aa tree class has a segment memory fault after the second insertion into the class. Recursion would of been easier, but I took a non-recursive implementation for the class.

    This is the whole...
  22. Replies
    8
    Views
    1,807

    Does visual C++ already have the nullptr idiom? ...

    Does visual C++ already have the nullptr idiom? eeh thanks for pointing out the flaws, but i already found them :)..
  23. Replies
    8
    Views
    1,807

    FSM functor help

    I just need someone to help me point out my array = newstate pointer mistake...



    #include <iostream>
    #include <cstddef>
    using namespace std;

    typedef void (*state_t)( char * inData,...
  24. Replies
    0
    Views
    1,290

    Creating a simple Game Core Template

    Hello , I am creating a very basic game engine using SDL and opengl as my basis for graphics. I thought of a general Game core class, that is split into five sections of routines. These were setting...
  25. THIS PROGRAM SUCKS HELP ME~~~!!!!! (Counts intervals between clicks=>supposed to)

    #ifndef HITIMER_H
    #define HITIMER_H
    #endif

    #define WIN32_LEAN_AND_MEAN

    #include <windows.h>

    #define TimerResolution 1000 //Milliseconds
Results 1 to 25 of 124
Page 1 of 5 1 2 3 4