jeudi 28 septembre 2017

Random values for const variable and c++ [duplicate]

This question already has an answer here:

I would like to create a const variable (of type: const size_t) that has a random value each time I run my code.

The following line

const size_t x = size_t(rand())

does not work.

Thank you in advance for your help

Aucun commentaire:

Enregistrer un commentaire