|
From: jose i. c. <ji...@gm...> - 2005-04-13 17:50:19
|
Was that really needed?
Don't help, if you don't want to help.
On 4/13/05, Verne H. Bohlender <ve...@sy...> wrote:
> The answer to this is simple. READ A BOOK ON SIMPLE C++ AND LEARN THE
> FUNDAMENTALS FROM THE BOOK. There are an awful lot available if you do a
> simple search or go to a book store.
> Verne
>=20
>=20
> Hi. I'm new to programming, and don't know all the terminology, so please=
go
> easy on me.
> =20
> 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.
> =20
> Here's my simple test program that didn't work in the least ^^=20
> =20
> __________________________________________________
> =20
> the program I tried to link to:
>=20
> #include<iostream>
> =20
> using namespace std;
> =20
>=20
> int subten(int num)
> {
> num -=3D 10;
> return num;
> }
> The program I tried to link to the above with:
> =20
> #include <iostream>
> #include "subten"
> using namespace std;
> =20
> main()
> {
> =20
> int a =3D 20;
> cout << a << endl;=20
> a=3Dsubten(a);
> cout << a;
> =20
> 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.
> =20
--=20
The Bible is not politically correct!
|