Witam, mam taką sytuację:
struct foo
{
char x[32];
char y[32];
};
string a = "12345678901234567890123456789012"; //32znaki
string b = "test";
foo test;
strcpy(test.x, a.c_str());
strcpy(test.y, b.c_str());
cout << test.x;
cout << text.x wyświetla 12345678901234567890123456789012test
Dlaczego te dwie tablice się łączą?