Tak Dev-C++ mi to sežere, zkompiluje, vše OK, ale pak když ten program spustím, tak napíše chybu, nevíte v čem je?
#include <iostream>
using namespace std;
struct z
{char jmeno[100];
int vek;
char prace[200];};
int main()
{char firma[200];
int zamestnanci,a,i,b,f;
i=0;
f=0;
a=1;
z p[32000];
cout << "Vitejte ve sve firme. nJak se bude Vase firma jmenovat?";
cin >> firma;
cout << "nKolik zamestnancu bude Vase firma mit?";
cin >> zamestnanci;
do
{cout << "nZadejte jmeno " << a << ". zamestnance: ";
cin >> p[i].jmeno;
cout << "nZadejte vek " << a << ". zamestnance: ";
cin >> p[i].vek;
cout << "nZadejte praci " << a << ". zamestnance: ";
cin >> p[i].prace;
cout << "nChcete zadat dalsiho zamestnance (1) nebo skoncit (0) ?" ;
cin >> b;
a++;}
while (a != zamestnanci || b != 0);
do
{cout << "n" << firma << "n";
cout << p[i].jmeno << " " << p[i].vek << " " << p[i].prace << "n";}
while(i != zamestnanci);
cin.get();
return 0;
}