Код: Выделить всё
#include "deck.cpp"
#include
#include
using namespace std;
int main()
{
setlocale(LC_ALL, "Rus");
const int size = 36;
deck col[size];
char kind[4][13] = {"пики", "буби", "крести", "черви"};
for (int i = 0; i < size; i++) {
col[i].kind = kind[rand()%4];
col[i].size = rand() % 13 + 2;
}
ofstream out;
out.open("deck.txt");
out.clear();
for (int i = 0; i < size; i++) {
out
Подробнее здесь: [url]https://stackoverflow.com/questions/78414135/dont-understand-why-string-line-dont-get-data-from-file[/url]
Мобильная версия