cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Errors with data structures
Errors with data structures
May 7, 2018 at 8:28am UTC
waranthem
(29)
Getting two errors. The first error is "error: use of undeclared identifier 'flights'. The second error is "error: use of invalid use of non-static data member 'flights'.
Last edited on
May 7, 2018 at 7:18pm UTC
May 7, 2018 at 8:49am UTC
Peter87
(11237)
Looks like you might want to use the
.
operator instead of the
=
operator.
1
2
it->second
.
flights.push_back(fli); ^
May 7, 2018 at 9:39am UTC
waranthem
(29)
Thanks Peter87. It works now!
Last edited on
May 7, 2018 at 9:39am UTC
Topic archived. No new replies allowed.