Hi Dev cpp users my name is Tony and i have a problem!!!
I just want to now why this functions and heaqders just dont work out, they sould work i think.
The programing rows... Why does not the random function and the clear screen function work. And i dont find the header file <system>, why sould it not be in the library just like the outhers... io think for exampel of <iostream> file.
//#include <system>
//using std::system;
//using std::srand;
//using std::rand;
// srand(time(0)); // Nytt frö för random-generatorn
//
// system("cls"); // Rensa skärmen
// iEType = rand() / (RAND_MAX / 3 + 1) + 1;
// iEHp -= rand() / (RAND_MAX / iDmg_max + 1) + iDmg_min;
// iCurrentHp -= rand() / (RAND_MAX / iEDmg_max + 1) + iEDmg_min;
// system("cls"); // Rensa skärmen
That was the problem i had, thanks for a quick answer.
Regards Tony Styrbjörn |