Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.52 Whether the answer is inaccurate #52

Open
KarelGT opened this issue May 11, 2023 · 0 comments
Open

7.52 Whether the answer is inaccurate #52

KarelGT opened this issue May 11, 2023 · 0 comments

Comments

@KarelGT
Copy link

KarelGT commented May 11, 2023

https://github.com/jaege/Cpp-Primer-5th-Exercises/blame/732276e54fa39198d169b558311cea2540938049/ch7/7.52.cpp#L10

Should it be "ales_data item = {"978-0590353403", 25, 15.99 * 25};" ?
15.99 is the price, not revenue, that is why book said "Such initialization is tedious and error-prone"

@KarelGT KarelGT changed the title Whether the answer is inaccurate 7.52 Whether the answer is inaccurate May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant