Im having problems with compiler warnings. This is what i came up with to fix it.
double d_x, d_y;
int i_z, i_a;
d_x = d_y * (double) i_z;
i_a = (int) d_x;
Type: Posts; User: SinAmerica
Im having problems with compiler warnings. This is what i came up with to fix it.
double d_x, d_y;
int i_z, i_a;
d_x = d_y * (double) i_z;
i_a = (int) d_x;
Thanks prelude and codeplug, never was too good at pointers... or classes for that matter, or cpp, or.... :)
Guess i waited to long to learn them.
Main.cpp
#include "CSDL.h"
CSDL sdl;
int main(int argc, char *argv[])
{
SDL_Surface *screen;
sdl.InitSDL();
sdl.SetVidMode(screen);
When i was 15 me and 2 friends polished off a litre of vodka in 30 mins. Needless to say i got a little sick :) I still drink, but i restrain myself. I smoke too... but im trying to quit cuase it...
Ok, when i start up my computer, i wont get output from my rear speakers untill i run the creative test. Then suddenly the rear speakers kick in. Any ideas?
If you want to add a SDL specific section i would love to help out with that.
Partly true... to them dinosours would still be roaming this planet, so they would say that when they started looking that dinosaurs roamed the earth. But when they starting looking, i was actually...
Me too, i would never do such a thing to a real tech. My mom is a tech for The Hartford, so i know how it can be. This person wasnt a tech though, it was either A. an AI program, B. someone who has...
Hmmm...
I suggest starting with shareware.
One great shareware company SpiderWeb Software has only 4 or so employees. They have been at it for quite a while now which leads me to believe that they...
Studies have shown that objects traveling at a faster speed travel further in to the future. For example on the international space station, astronuats are (a really small amount of time ending in a...
I really don't think your understanding what im saying here. I'm NOT talking about downloading from one source, im talking about total bandwith between client and server.
Yeah i know, but to...
We'll, i was saying that if time travel DID exist, it would'nt be possible to do anythign with it. But as some people have siad, time does not really exist. I suggest this if anyone is interested in...
Not true on the dial-up being only able to get 5k d/l a sec. Well maybe downloading something, but strait to the server i usually get about 13kb a sec. And yes i think broadband is a little better...
If it were possible to go back in time, then it would be impossible to go back in time with the intention of doing anything. Doing so would create a paradox which, according to some theorys' could,...
Take away control of anything from the people and i'll call you a dirty communist (A.K.A. a Democrat)
This is inheriently wrong, not becuase of the content, but becuase the parents do not have a...
For some reason i have yet to fathom, my isp is currently MSN dial-up. I'm here to talk about how incredbly crappy this service is, and to prevent others from making the mistake of using MSN.
...
We'll if youre not running a program inside a program then void main is just as good as int main.
See my point? It's not that you need
int main(int argc, char *argv[])
but, it is good practice.
4. Declare main as type int (main can never be void)
Hmm thats odd, see i remember... no that couldnt be right. Yeah actually it is! I compiled a program where main was declared void and it...
When not in fullscreen mode...
you don't need SDL_DOUBLEBUFF
you should'nt use SDL_Flip
use SDL_UpdateRect
*rummages for reference*
God this book is small....
Perfect, thanks salem. If anyone else is interested ...
Write a message que system for console.
I'm trying to create a line algorithim. I'm going crazy.
I just can't seem to get the math strait. Heres what i'm doing...
First, i am getting two points from the user, then getting the slope.
...
Does "undefined reference to (function name)" mean that the function is prototyped, just not defined?
I would need an infinite supply of new games.
Had the same problem finding ASCII values myself. This is what i came up with.
#include <iostream.h>
#include <stdlib.h>
int main()
{
int checkup = 0;