Peroxide.dk had no information about PIT that I could find, and I don't plan to switch to DJGPP. I tried to install it in the past, but all I did was waste 3 hours.
Type: Posts; User: destroyerBEACON
Peroxide.dk had no information about PIT that I could find, and I don't plan to switch to DJGPP. I tried to install it in the past, but all I did was waste 3 hours.
Does anybody know of a function in Turbo C++ 1.00 that can count time faster than a second? I looked through the functions in time.h and dos.h, but couldn't find anything.
This is mainly to make...
Is there a way that I can make my programs run at a constant speed? It speeds up and slows down spontaneously. I am using Turbo C++ 1.00.
Attached is the code that I used.
I am trying to program a mouse into my program. My mouse function stores all of the pixels under the cursor into a matrix called umouse. It then draws the cursor. Whenever the mouse moves, the...
That helped, thanks.
After entering the code, I found that the main error was somewhere else in my code, simply changing && to || . Oops :)
void changenum(int *x1, int *x2)
{
int a=1,b=1;
if (*x1 < *x2) a=1;
if (*x1 > *x2) a=-1;
if (*x1 == *x2) a=0;
x1 += a;
}
The first if statement may be redundant, but I use...
I am trying to make a simple function where you input x1 and x2 and the function will increment x1 if it is less, decrement if x1 is more, and keep x1 the same if the numbers are equal.
I can get it...
I am trying to make a simple function where you input x1 and x2 and the function will increment x1 if it is less, decrement if x1 is more, and keep x1 the same if the numbers are equal.
I can get it...
I compiled this code using Turbo C++, and floodfill had a weird diamond-like pattern come out every time the "coin" switched colors. Can anybody explain this?
#include <graphics.h>
#include...