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

Replace braces with parentheses in chapter08/02-structured/test/runtext.cpp #2

Open
gpollice opened this issue Apr 9, 2022 · 0 comments

Comments

@gpollice
Copy link

gpollice commented Apr 9, 2022

In "02-structured/test/runtest.cpp" I think that line 8: string expected string expected {"2 + 2 = 4\n3 * 3 = 9\n"}; should be
string expected ("2 + 2 = 4\n3 * 3 = 9\n");

The original produces a compilation error, expecting a ';' after "expected" (using c++ on MacOS).

@gpollice gpollice changed the title Replace braces with parentheses in chapter08 runtext.cpp Replace braces with parentheses in chapter08/02-structured/test/runtext.cpp Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant