Challenge: Nested Structs
Завдання
Swipe to start coding
Practice defining and using nested structs to organize related data.
- Define a struct named
Addresswith a membercityof typestd::string. - Define a struct named
Companywith a memberaddressof typeAddress. - Write a function named
printCompanyCitythat takes aCompanyas a parameter and returns astd::stringwith the value of thecitymember in the format:Company city: <city>.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 2
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 8.33
Challenge: Nested Structs
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Practice defining and using nested structs to organize related data.
- Define a struct named
Addresswith a membercityof typestd::string. - Define a struct named
Companywith a memberaddressof typeAddress. - Write a function named
printCompanyCitythat takes aCompanyas a parameter and returns astd::stringwith the value of thecitymember in the format:Company city: <city>.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 2
single