Search:

Type: Posts; User: Oysterman

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    116
    Views
    21,914

    Although that is not what you had in your...

    Although that is not what you had in your example. :) That approach is however referred to as the Martingale system, a google-friendly term.


    Or you run into the house's betting cap, with happens...
  2. Thread: Reformat?

    by Oysterman
    Replies
    37
    Views
    3,712

    I don't know if I understand your problem. But I...

    I don't know if I understand your problem. But I do know that Windows can be made to read Ext2/3 file systems with the proper driver:

    http://www.fs-driver.org/
  3. Replies
    116
    Views
    21,914

    If there are less than 10^68 stars in the...

    If there are less than 10^68 stars in the universe, then that would indeed be correct.


    Not to mention that many casinos have roulette wheels with a 00 field, as well.
  4. Replies
    67
    Views
    15,478

    Well, Megaupload has a flash-based progress...

    Well, Megaupload has a flash-based progress indicator that works fine for me, at least. No resume functionality AFAIK, though.
  5. Replies
    67
    Views
    15,478

    You could always use Megaupload: ...

    You could always use Megaupload:

    http://www.megaupload.com

    (Though it's over HTTP.)

    EDIT: FWIW, I rar:ed a couple of .avi files, the rar's were both 10-15% smaller (with max compression). I...
  6. Replies
    3
    Views
    1,128

    Excellent. I thank you for sharing your wisdom on...

    Excellent. I thank you for sharing your wisdom on the subject (and the fast replies)!
  7. Replies
    3
    Views
    1,128

    Illegal string comparisons working?

    OK, so I haven't programmed in C for years and years. Haven't had a reason to until now, I'm helping out a friend with his first programming course in university - he's new to programming in general,...
  8. Thread: While thing

    by Oysterman
    Replies
    30
    Views
    3,633

    If i recall correctly, SDL only signals when keys...

    If i recall correctly, SDL only signals when keys are pressed or released. If you want to check if a key is *held down* for a longer time, you'd have to do it manually by also checking for KEYUP...
  9. Replies
    8
    Views
    7,874

    Unless you reserve memory for the new string,...

    Unless you reserve memory for the new string, that's what you get. But you shouldn't do this at all, you should use std::string. One of the beauties of C++ vs C, is that in C++ you can keep pointer...
  10. Thread: SDL + Keys

    by Oysterman
    Replies
    24
    Views
    4,693

    Because you now declare a return type, namely...

    Because you now declare a return type, namely SDL_Surface*. The fact that you don't have a return statements make assignments such as this undefined:

    up = apply_surface( 10, 0, piece, screen );...
  11. Thread: SDL + Keys

    by Oysterman
    Replies
    24
    Views
    4,693

    I immediately saw that apply_surface() doesn't...

    I immediately saw that apply_surface() doesn't give any proper return value. Start there.
  12. Replies
    13
    Views
    1,735

    You could always put it in whatever class you...

    You could always put it in whatever class you think it belongs and make it static. You'd then pass it to sort() as ClassName::Comp.
  13. Thread: SDL + Keys

    by Oysterman
    Replies
    24
    Views
    4,693

    Well, up, down, right, left and message are...

    Well, up, down, right, left and message are pointers to SDL_Surface. First of all, the names you chose for the variables doesn't exactly make it easy to understand their type. The fact that a...
  14. Replies
    7
    Views
    1,220

    The way I always do playing-card-related stuff,...

    The way I always do playing-card-related stuff, is to see each card as a number between 0 and 51, see the rank as a number between 0 and 12, and the suit as a number between 0 and 3. That gives me:
    ...
  15. Replies
    2
    Views
    1,351

    SDL_Event ev; bool game_is_running = true; ...

    SDL_Event ev;
    bool game_is_running = true;

    while (game_is_running)
    {
    SDL_PollEvent(&ev);

    switch (ev.type)
    {
    case SDL_QUIT:
  16. Replies
    20
    Views
    3,124

    If your teacher doesn't know how to do a forward...

    If your teacher doesn't know how to do a forward declaration, he/she shouldn't teach C++.



    class guests;

    class rooms
    {
    // ...
    };
  17. Replies
    1
    Views
    2,709

    You could always use the Windows API MessageBox()...

    You could always use the Windows API MessageBox() function directly (through windows.h), if you don't care about platform independency. For example:


    #include <windows.h>
    #include <SDL.h>

    int...
  18. Thread: Int

    by Oysterman
    Replies
    2
    Views
    872

    If you need to ask that, you really should look...

    If you need to ask that, you really should look up a tutorial or a book on the very basics.

    http://www.cprogramming.com/tutorial/lesson1.html

    It's a data type. It doesn't really "do" much at...
  19. Replies
    11
    Views
    2,849

    A memory game or tic-tac-toe using SDL...

    A memory game or tic-tac-toe using SDL is about as simple a project as I can think of (that's actually a game). There's a decent tutorial on SDL here.
  20. Replies
    11
    Views
    2,849

    You could start even simpler than Tetris. Make a...

    You could start even simpler than Tetris. Make a simple memory game or something. For a beginner it's well enough trouble to get used to the framework (Allegro, SDL, DirectX, plain Windows API, or...
  21. Replies
    6
    Views
    2,420

    I hear ya. (I also like it when they include...

    I hear ya.

    (I also like it when they include an error message pointing to line 64 in a file and they post the whole 100+ line source without highlighting the line. Just because it is so much fun...
  22. Replies
    6
    Views
    2,420

    The reason I was asking what the problem was, was...

    The reason I was asking what the problem was, was because it compiled and ran just fine with gcc under (Ubuntu) Linux. Shouldn't it?
  23. Replies
    6
    Views
    2,420

    Well, what errors are you experiencing?

    Well, what errors are you experiencing?
  24. Replies
    1
    Views
    1,859

    Oh please. ...

    Oh please.

    http://cboard.cprogramming.com/announcement.php?f=3&a=39
  25. Replies
    2
    Views
    6,891

    for(iter=link_list.begin(); iter !=...

    for(iter=link_list.begin(); iter != link_list.end() ; ++iter)
    {
    cout << iter->name;
    }
Results 1 to 25 of 42
Page 1 of 2 1 2