What is a seed in c++?

"Call a function to populate the array to perform the following:
Ask the user for a seed"

Recommended Answers

All 2 Replies

My first guess would be that seed could mean a number to pass to the srand function, for random numbers.
http://www.cppreference.com/wiki/c/other/srand


Otherwise, the best person to ask is whoever provided you with the details of the problem

My first guess would be that seed could mean a number to pass to the srand function, for random numbers.

That's one of the more common uses of the term. In crytography, you'll see "initialization vector" more often. In general, I'd understand "seed" to mean "initial value(s)"--in this case, values for part or all of the array. As Bench suggests, check with who's asking for details.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.