Search:

Type: Posts; User: Scorpion-ice

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,203

    DirectDraw Newbie

    I'm slowly learning DirectDraw programming, I'm using it ontop of a form so I can draw alot faster due to the canvas drawing flashing occasionally (too slow). I have a map area that is drawn using...
  2. Replies
    15
    Views
    2,009

    College Lecturer

    Hi, a Lecturer told a friend of mine that using int main() was bad practice and that void main() is the correct way for C++. Then told him to learn "ghost" or something, anyone shed any light on...
  3. Replies
    5
    Views
    1,200

    hmz, surely that would give the same effect as...

    hmz, surely that would give the same effect as when the time goes over 3hrs (past midnight) that the day would = 1, or did u mean convert it all into seconds and then work out how many hours are...
  4. Replies
    5
    Views
    1,200

    Easy(?) Problem.

    I have been writing a program and I came across a problem and have scrapped my code so many times, here is an example of what im trying to do.

    I have the date and time setup, say for example the...
  5. Replies
    5
    Views
    1,179

    any idea how you would be able to save the String...

    any idea how you would be able to save the String to a text file and be able to load it back up without any problems?
  6. Replies
    4
    Views
    1,327

    hehe a reason to why u shouldn't use it would be...

    hehe a reason to why u shouldn't use it would be a nice thing to say instead of saying don't do this don't do that etc.
  7. Replies
    7
    Views
    1,246

    look at the "atoi" (alpha to integer) function,...

    look at the "atoi" (alpha to integer) function, an integer cannot handle input other than a number, and will crash, whereas if you use atoi ( stdio.h or stdlib.h i think ) it will convert to 0.

    I...
  8. Replies
    13
    Views
    4,674

    c_str() gives me invalid data sometimes, any idea...

    c_str() gives me invalid data sometimes, any idea on that too?

    I mean I convert a String to a Char using the c_str() function and it would give me something like "[][]|||^*" back, unless there is...
  9. Replies
    5
    Views
    1,179

    I don't wanna preset the variable like that, I...

    I don't wanna preset the variable like that, I have an external const char * with names within it that I want to use to set the other type of variables to begin with. But I seem to have to use a...
  10. Replies
    5
    Views
    1,179

    Strings and Chars

    I want to save some variables to a data text file, problem is the only way to do this i know of uses a "char *", I need to save some "String" type variables into the txt file that can be reloaded...
  11. Thread: Splitting

    by Scorpion-ice
    Replies
    4
    Views
    1,014

    char *split_sentence( char *fStr, char *bStr ) {...

    char *split_sentence( char *fStr, char *bStr )
    {
    while( isspace( *fStr ) ) fStr++;
    while( *fStr != '\0' ) {
    if( *fStr == ' ' ) {
    fStr++;
    break;
    }
    *bStr++...
  12. Thread: BitBlt

    by Scorpion-ice
    Replies
    6
    Views
    1,291

    Sure, all examples will be useful in helping me...

    Sure, all examples will be useful in helping me learn this, hopefully well commented too ;)
  13. Thread: BitBlt

    by Scorpion-ice
    Replies
    6
    Views
    1,291

    Having the bitmaps already within the executable...

    Having the bitmaps already within the executable which I can use for the BitBlt.

    And thankyou :)
  14. Thread: Mapping

    by Scorpion-ice
    Replies
    0
    Views
    1,403

    Mapping

    If you was wanting to write a mapping system or a game that uses a 2D map, but is too big to fit on the screen all at once, one method was the "BitBlt" API calls which I am trying to learn, I was...
  15. Thread: DataTypes

    by Scorpion-ice
    Replies
    3
    Views
    1,348

    I was told using a "long long" was bad practice,...

    I was told using a "long long" was bad practice, although it didn't work with my compiler anyway :/

    I have resorted to using a "double" for the time being.
  16. Thread: DataTypes

    by Scorpion-ice
    Replies
    3
    Views
    1,348

    DataTypes

    As a signed long will only allow up to 2 billion odd, without using an unsigned how would you be able to use numbers greater than this?
  17. Thread: BitBlt

    by Scorpion-ice
    Replies
    6
    Views
    1,291

    BitBlt

    I'm using the Visual Borland Builder 3 Standard compiler and wondered if anyone wouldnt mind helping me learn the "BitBlt" technique, an example would be greate that I can compile and learn from, I...
Results 1 to 17 of 17