The compiler is arguing at srand and rand are not members of std. I've searched for hours, but I couldn't find the answer, please, help me. Building with VC++ 2017 version 15.9.
#include <cstdlib>
#include "Miscellaneous.h"
#include "pch.h"
#include <ctime>
int RandomTen()
{
std::srand(std::time(nullptr));
return std::rand();
}
Aucun commentaire:
Enregistrer un commentaire