Я могу создать достаточно простую программу, но не могу соответствовать требованиям программы. < /p>
Так я изначально ее писал ... < /p>
==========
Код: Выделить всё
#include
#include
// Phone Book structure
struct Person {
std::string name;
int phone;
};
int main() {
const int numPersons = 1;
Person persons[numPersons];
// Prompts for details
for (int i = 0; i < numPersons; ++i) {
std::cout > persons[i].name;
std::cout > persons[i].phone;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79500836/c-coding-issue-including-createrecord-and-printrecord[/url]
Мобильная версия