Challenge: Arrays of Structs
Tarefa
Swipe to start coding
Write a function that takes a vector of Book structs and returns the title of the longest book in the collection.
- Iterate through the vector of Book structs.
- For each Book, compare its pages field to track the book with the highest page count.
- Return the title of the book with the most pages.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 4
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me an example?
Awesome!
Completion rate improved to 8.33
Challenge: Arrays of Structs
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Write a function that takes a vector of Book structs and returns the title of the longest book in the collection.
- Iterate through the vector of Book structs.
- For each Book, compare its pages field to track the book with the highest page count.
- Return the title of the book with the most pages.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 4
single