From: Verne H. B. <ve...@sy...> - 2005-04-13 14:40:51
|
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 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. |