Challenge: Nested Structs
Tehtävä
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>.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 8.33
Challenge: Nested Structs
Pyyhkäise näyttääksesi valikon
Tehtävä
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>.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
single