Subpage under development, new version coming soon!
Topic closed!!!
Subject: C++ Pomocy
- 1
kamil12511 [del] to
All
Mam do napisania program który powinien losować kilka osób z 21 lecz mam błąd w 33 linijce czyli srand(time(0)); i nie wiem o co chodzi . Proszę o pomoc
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
int r,i,x;
string osoba[21];
osoba[1]="A";
osoba[2]="B";
osoba[3]="C";
osoba[4]="D";
osoba[5]="E";
osoba[6]="F";
osoba[7]="G";
osoba[8]="H";
osoba[9]="I";
osoba[10]="J";
osoba[11]="K";
osoba[12]="L";
osoba[13]="M";
osoba[14]="N";
osoba[15]="O";
osoba[16]="P";
osoba[17]="R";
osoba[18]="S";
osoba[19]="T";
osoba[20]="U";
cin>>r;
int t[r];
srand(time(0));
(edited)
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
int r,i,x;
string osoba[21];
osoba[1]="A";
osoba[2]="B";
osoba[3]="C";
osoba[4]="D";
osoba[5]="E";
osoba[6]="F";
osoba[7]="G";
osoba[8]="H";
osoba[9]="I";
osoba[10]="J";
osoba[11]="K";
osoba[12]="L";
osoba[13]="M";
osoba[14]="N";
osoba[15]="O";
osoba[16]="P";
osoba[17]="R";
osoba[18]="S";
osoba[19]="T";
osoba[20]="U";
cin>>r;
int t[r];
srand(time(0));
(edited)
Jak ktoś może pomóc to na PW bo nie chec mi całego programu wkleić
(edited)
(edited)
daj na
wklej.org, wklej tu link.. albo najlepiej do tematu o programowaniu ;]
wklej.org, wklej tu link.. albo najlepiej do tematu o programowaniu ;]
- 1