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
randomly generate a vector and list
randomly generate a vector and list
Apr 26, 2017 at 3:28am UTC
seungyeon
(129)
how do i do this?
i cant do it like an regular array
1
2
//wrong
arrayvector[i] = rand()%6;
Apr 26, 2017 at 3:40am UTC
gunnerfunner
(2127)
http://en.cppreference.com/w/cpp/algorithm/generate
Topic archived. No new replies allowed.