Hello all! I am making a program with multiple functions across two different source files. I have a header file, my function main, and a function called RandCard. When I put in my function into main however it seems like the program will not read or use the functions. I have tried making an example program to see and compared it to my program (which I will begin calling "MyFirstProgram") and they look identical, accept one will run fine and they other wont. Here is MyFirstProgram:
############################
Header file:
//File identifiers (?)
#ifndef HEADERFILE4GAME1_H //Need file name all caps
#define HEADERFILE4GAME1_H //Need file name all caps
int main()
{
cout << "word";
int RandCard();
void test();
}
void test()
{
cout << "test";
}
Function file:
#include "Headerfile4Game1.h"
int RandCard()
{
cout << "test";
return 0;
}
###############################
Note that it will print "word" Which is inside of main, but it will not do anything with the functions, and the function "test" Will also do nothing... SO all I am getting right now is "word" When I should be getting "word test test"
Any help is appreciated, thanks!