Программы на C++. Форум разработчиков
-
Anonymous
Как передать массив статических строк в конструктор С++?
Сообщение
Anonymous »
Мой код
Код: Выделить всё
#include
#include
#include
class Note {
private:
std::string surname;
std::string name;
std::string phone;
std::string birthday;
std::string socials[100];
public:
void print() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79213458/how-to-pass-static-string-array-to-constructor-c[/url]
1732248031
Anonymous
Мой код
[code]#include
#include
#include
class Note {
private:
std::string surname;
std::string name;
std::string phone;
std::string birthday;
std::string socials[100];
public:
void print() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79213458/how-to-pass-static-string-array-to-constructor-c[/url]