User profile: AbstractionAnon

User info
User name:AbstractionAnon
History
Joined:
Number of posts:5087
Latest posts:

Hangman Game with functions
[quote]Aren't I passing them by reference as parameters?[/quote] No. You're passing them by value, ...

Creating a class that contains a string object to hold the text of a file
Line 7, 27: You have both txt and text defined in your class. You only need one. Line 23: You ha...

Creating a class that contains a string object to hold the text of a file
Line 25: You're invoking the default constructor which does nothing. If you want to read from a fi...

Creating a class that contains a string object to hold the text of a file
Line 16: An ifstream constructor that accepts a string was introduced on C++11. Either turn on the...

If statement
If there is no code between lines 1 and 2 that sets z to [code]true[/code], the if statement will ne...