Struct, not declared in scope (Function help)

How do I make structures work in other functions, similar to this one?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef STRUCTS_H
#define STRUCTS_H
using namespace std;
struct Employee
{
	string name;
	int age;
	float wage;
		
};
struct Game
{
	string names;
	float version;	
	
};
void BuildStructure()
{

	Employee alex;   //Creates the Employee Alex, and has his configurations.
	alex.name="Alex";
	alex.age=17;
	alex.wage=12.50;
	
	Game Game;
	Game.names = "Bleach: Last Resort";
	Game.version=1.521;
}
void FriendlyServiceReminder()
{
	std::cout<<"Hello "<<alex.name<<", and welcome to "<<
	Game.names<<"!"<<std::endl<<std::endl;
	
}
	

#endif 
where is the <string> header?
Topic archived. No new replies allowed.