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

Fix iostream.h include; incorrect variable names #309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

musteresel
Copy link

include <iostream.h> is wrong, it's include <iostream> as used in the other parts.

Variable names starting with an underscore followed by an uppercase letter are reserved for the implementation, same for variables containing two consecutive underscores.
https://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier

Note that the using namespace std; is actually frowned upon, but as it's so wildly in use (and also the default on ideone) I didn't change that. Also there's some minor terminology mistakes but I doubt that the book benefits from fixing those.

`include <iostream.h>` is wrong, it's `include <iostream>` as used in the other parts.

Variable names starting with an underscore followed by an uppercase letter are reserved for the implementation, same for variables containing two consecutive underscores.
https://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier

Note that the `using namespace std;` is actually frowned upon, but as it's so wildly in use (and also the default on ideone) I didn't change that.  Also there's some minor terminology mistakes but I doubt that the book benefits from fixing those.
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

Successfully merging this pull request may close these issues.

None yet

1 participant