cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Need some help with my array code.
Need some help with my array code.
Apr 26, 2015 at 5:02pm UTC
oneoldcoot
(23)
Thanks for the help guys :D
Last edited on
Apr 26, 2015 at 5:47pm UTC
Apr 26, 2015 at 5:12pm UTC
anup30
(968)
> Have i done this correctly?
have you been able to run it ?
Apr 26, 2015 at 5:20pm UTC
bazetwo
(56)
c++ does not support variable length Arrays, so
line 48
will give error
Advice: Use
Vectors
or go the
Dynamic memory Allocation
route
Apr 26, 2015 at 5:38pm UTC
anup30
(968)
> c++ does not support variable length Arrays, so line 48 will give error
actually gcc allows it! (i think not by C++ standard though)
https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html
Topic archived. No new replies allowed.