Hi
I am writing a football tournament sim and cannot get the main of my program to deal with the structures which are defined in the header. Here is the relevent code:
header file
#include <math.h>
#include <iostream>
#include <array>
#include <string>
using namespace std;
struct team{
string name;
int atk;
int def;
int injurys;
int kSkill;
int sSkill;
int lastResult;
};
main cpp file
#include "cup header.h"
#include "structure.h"
using namespace std;
void main (){
teamstructure();
cout<<one.name;
system ("pause");
}
thanks for any help you can give, I can poet the rest of the code if you need it
Dan