mam problem tzn. z petli uzupelniam tabele struktur i jak wyswietlam komurke ktora wlasnie uzupelnilem to wyswietla dobre dane, a poza petla pół dobre dane a pol nie. tzn. wysokoscie sie zmienia a figure ciagle pokazuje " k "
const string figury[L_FIG]={"P", "K", "T", "k"};
const string wysokosci[L_WYS]={"2","3","4","5","6","7","8","9","10","joperk","dama","krol","as"};
struct Karty
{
string figura;
string wysokosc;
}
// tutaj wyswietla prawidlowe -------------------------------
void zaczytywanie_do_all(Karty tab[])
{
for(int i=0;i<L_FIG;i++)
for(int j=0;j<13;j++)
{
tab[j].figura=figury[ i ];
tab[j].wysokosc=wysokosci[j];
cout<<tab[j].figura;
cout<<tab[j].wysokosc<<endl;
}
// tutaj juz nie --------------------
for(int i=0;i<L_FIG;i++)
for(int j=0;j<13;j++)
{
cout<<tab[j].figura;
cout<<tab[j].wysokosc<<endl;
}