November 15th, 2003, 10:27 PM
#include <iostream.h>
#define CUBE(x) (x*x*x)
int main (void)
{
double x;
x=2;
cout << x << " cubed ";
cout << "is " << CUBE(x);
}
October 31st, 2003, 04:12 AM
well i dont know what to write my next one about...i have already covered pointers and reading/writting to files. Anyways if you have anything that you want to learn, maybe i already know it, just...
September 29th, 2003, 01:20 AM
slatry, thanks for pointing that out...lol i meant to type
const double PI = 3.141592654;
damn that was an embarrassing mistake...well when you type a tutorial that long you gotta make a...
September 29th, 2003, 12:49 AM
Well, it defiently took me a long time to write this tutorial...it covers the preprocessor and what it does and how to use it. Also, this tutorial will cover how to make comments in C++ using...