|
From: Austin S. <Aus...@co...> - 2005-04-13 04:19:31
|
Hi. I'm new to programming, and don't know all the terminology, so =
please go easy on me.
I'm trying to figure out how to create a include file so I can use it's =
functions in my programs, by just including it.
Here's my simple test program that didn't work in the least ^^=20
__________________________________________________
the program I tried to link to:
#include<iostream>
using namespace std;
int subten(int num)
{
num -=3D 10;
return num;
}
The program I tried to link to the above with:
#include <iostream>
#include "subten"
using namespace std;
main()
{
int a =3D 20;
cout << a << endl;=20
a=3Dsubten(a);
cout << a;
system("pause");
}
Ok, now please don't chew me out to bad for the mistakes that I made, =
and are common knowledge to everyone but me :p. thanks.
|