Скажем, у нас есть структура A > и структура B:
Код: Выделить всё
struct A
{
char a[16];
int b;
float c;
void print()
{
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79160077/how-can-i-initialize-a-random-struct-type-using-the-template-function[/url]
Мобильная версия