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
List Initialized Vector is having error
List Initialized Vector is having error messages
Jan 16, 2015 at 1:37am UTC
Vesparo
(4)
vector<
int
> vec1 {2, 4, 6, 8, 10, 12, 14, 16, 18, 20};
This code worked perfectly fine in Xcode earlier today, but when I got home on visual studio 2012 express it is having an error. It's saying that the local function definitions are illegal and has a red mark under the '{' only? Whatever that means.
Last edited on
Jan 16, 2015 at 1:39am UTC
Jan 16, 2015 at 2:30am UTC
JLBorges
(13770)
This is fixed in Visual Studio 2013.
Jan 16, 2015 at 2:41am UTC
Vesparo
(4)
I'll download it then. Thanks for the fast response. Much appreciated.
Topic archived. No new replies allowed.