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...
Type: Posts; User: Oysterman
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...
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/
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.
Well, Megaupload has a flash-based progress indicator that works fine for me, at least. No resume functionality AFAIK, though.
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...
Excellent. I thank you for sharing your wisdom on the subject (and the fast replies)!
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,...
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...
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...
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 );...
I immediately saw that apply_surface() doesn't give any proper return value. Start there.
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.
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...
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:
...
SDL_Event ev;
bool game_is_running = true;
while (game_is_running)
{
SDL_PollEvent(&ev);
switch (ev.type)
{
case SDL_QUIT:
If your teacher doesn't know how to do a forward declaration, he/she shouldn't teach C++.
class guests;
class rooms
{
// ...
};
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...
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...
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.
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...
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...
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?
Well, what errors are you experiencing?
Oh please.
http://cboard.cprogramming.com/announcement.php?f=3&a=39
for(iter=link_list.begin(); iter != link_list.end() ; ++iter)
{
cout << iter->name;
}