const fs = require('fs');
const s = fs.createWriteStream('./1.txt', {start: 10, flags: 'r+'});
s.write('abcde');
s.close();
options may also include a start option to allow writing data at some position past the beginning of the file, allowed values are in the [0, Number.MAX_SAFE_INTEGER] range. Modifying a file rather than replacing it may require a flags mode of r+ rather than the default mode w. The encoding can be any one of those accepted by Buffer.
std::cin >> count;
Ввели число, нажали enter. Перевод строки попал в буфер ввода.
Следующая функция
std::cin.getline(user[0].name, 20);
считала то, что было в буфере ввода до перевода строки (а именно - пустую строку).
std::cout << user[0].name << std::endl;
Вывела пустую строку, потому что между числом и переводом строки у вас ничего не было.
Программа завершила работу.
Всё правильно отработало, как и должно было.