Not present by default anywhere in 98SE other than the sample files (.SAM), you may however create one directly in the windows folder.
Type: Posts; User: MortalMonkey
Not present by default anywhere in 98SE other than the sample files (.SAM), you may however create one directly in the windows folder.
A challenge, just for fun:
Make a function that behaves exactly like a variable.
Excluded actually, since bInterecting is false when the if condition is true.
Well, it's easy enuff in concept, innit?
if ((dist > rad1 + rad2) || (dist < abs(rad1 - rad2)))
bIntersecting = false;
else
bIntersecting = true;
Circles are great. They're real easy to calculate, and are the average shape of all objects at all angles.
No wonder they're so popular in game physics.
There are many ways to store a tree, here's one:
Store them in clumps of three, first the current node ID, then the left node ID, then the right node ID.
This tree
A
/ \
B C
/ ...
If the numbers are only going to be unsigned single digits (0 to 9), there's a much simpler answer:
blah += '0' + a;
If they are not, this method will bring much WeirdStuff™.
You could probably also achieve a desirable effect with a stack-smashing hax. I'm thinking something along the lines of allocating some mem that you inject with deletion instructions, then hack a...
Personally I think pointers are so confusing because every reference say they are, or hint at it in some or other way.
Yeah, a pointer is like a bookmark, or a note with the pagenumber on it.
Apparantly, that only applies to CODE tagged code :p
Here's a hint : You can print as many asterisks as you want, they all end up on the same line* - that is, untill you print a newline character.
*Technically anyway, the console does wrapping...
http://www.wotsit.org/search.asp?s=graphics
No. It's not very portable.
There's a hundred and one ways to install something on someone's computer once you got access to place a script or executable anywhere.
And to be quite frank, Replacing Pause.exe is right down...
Well, if you first got to replace pause.exe with your spyware installer, you could just as well put it in the Startup folder.
Besides, with the amount of batch files I've written for various...
Right, thanks.
I've seen this a lot, but shouldn't it be
if (!in)
{
cerr << "Unable to open input file" << endl;
if (out)
out.close();
return EXIT_FAILURE;
}
if (!out)
Only in UnrealScript. I'm starting to mix up the languages, it seems.
On the other hand though, EXIT_SUCESS and EXIT_FALIURE doesn't say anything about what type of variable and what value it has, nor does it help any that they are declared elsewhere. Combine that with...
Not really. The easiest method is
switch (true)
{
case (test == "hey"):
DoSomething();
break;
case (test == "bye"):
DoSomethingElse();
break;
I'm just competing for the Most Crap In Fewest Lines Award :p
Well, 0xEE == 0x00EE, as opposed to 0xEE00.
#include <iostream>
using namespace std;
void strformal( char *str )
{
int i;
for (i = 0; str[i] != '\0'; i++)
if ((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z'))...
The local fstream tutorial isn't exactly indepth on i/o stream functions. So while I was still stuck with getch(ch), I wrote this function:
string itox( unsigned int i )
{
char x[7] = "000000";...
You might want to let the functions take the floats independently, or even use structs, so you don't accidentally pass an undersized pointer/array and get GPFs. Also, if you name them appropriately...