vectors and structures

I'm trying to create a program that use 2 structures, 1 to hold user account credentials and another to hold user information as well as a vector of account credentials. For some reason I get this for line 6 "error C2065: 'Service' : undeclared identifier"

What's wrong with it? It was working fine in my other project,
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
struct User
{
	string servicePin;
	string name;
	string phoneNumber;
	vector<Service> services;
};

struct Service
{
	string website;
	string userName;
	string password;
};

vector<User> users;
Last edited on
I just switch the placements of the 2 structures and now it works. I'm guessing that the vector didn't recognize the 2nd structure below it.
Topic archived. No new replies allowed.