Search:

Type: Posts; User: mark707

Search: Search took 0.00 seconds.

  1. Replies
    54
    Views
    374,631

    Sticky: Welcome - parallelrealities.co.uk...

    Welcome - parallelrealities.co.uk

    great game programming tutorials with emphasis on software architecture. the tutorials use SDL2.
  2. Thread: Gravity

    by mark707
    Replies
    1
    Views
    2,724

    Gravity

    Hi..
    I am trying to make a basic side scroller game and I am wondering how I should implement gravity.
    I wrote something and it works but i am wondering if there is another or better way to do it....
  3. Thread: return array

    by mark707
    Replies
    7
    Views
    1,234

    It warned me about returning address of a local...

    It warned me about returning address of a local variable.
  4. Thread: return array

    by mark707
    Replies
    7
    Views
    1,234

    return array

    Hi :) ..
    We were given an assignment to write a function called split.. it splits a string based on a certain delimiter and adds each split in an array then returns that array.
    I am not trying to...
  5. Replies
    3
    Views
    2,387

    No it wasnt's a homework problem.. I was just...

    No it wasnt's a homework problem.. I was just interested. But you're right I should have googled it. Thanks anyway.
  6. Replies
    2
    Views
    1,347

    int a = 3; //test if Low Order bit is true...

    int a = 3;

    //test if Low Order bit is true
    if( a & 1)cout << "Least significant bit is 1\n";


    what happens here is the value stored in a 0000 0011 is bitwise-anded with 0000 0001 which...
  7. Replies
    3
    Views
    2,387

    Data structures used in games.

    What are the main data structures used in programming games and for what purpose is each one used?
  8. Thread: Stdin stdout

    by mark707
    Replies
    3
    Views
    1,891

    All right. Thank you all.

    All right. Thank you all.
  9. Thread: Stdin stdout

    by mark707
    Replies
    3
    Views
    1,891

    Stdin stdout

    Hi.
    If stdin and stdout are file streams shouldn't they be closed after their use?
    I know C++ treats IO streams like objects and therefore they can be closed automatically when their destructors...
  10. you can use getchar() to wait for you to hit...

    you can use getchar() to wait for you to hit return, giving you the chance to see the output before the window closes.



    #include <stdio.h>

    int main()
    {
    int ch;
  11. Thread: Linked list

    by mark707
    Replies
    4
    Views
    2,740

    Linked list

    Hi..

    i would like to know why this code is working :(:



    #include <stdio.h>#include <stdlib.h>
Results 1 to 11 of 12