sam333
09-02-2014, 13:09
Ciao a tutti come da titolo ho dei problemi con codeblocks ,e cioè non riesco a usare la libreria ctime esempio:
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
srand(time(0));
return 0;
}
se provo a compilare un codice così semplice mi da il seguemte errore:"srand was not declared in this scope" ma come è possibile se l'ho sempre usato??
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
srand(time(0));
return 0;
}
se provo a compilare un codice così semplice mi da il seguemte errore:"srand was not declared in this scope" ma come è possibile se l'ho sempre usato??