Permalink
Browse files

Asks for filename and starting point again now. Added cout prompt whe…

…n fast-forwarded
  • Loading branch information...
rejcx committed Mar 7, 2013
1 parent 50d0707 commit 1f32999ec4ae818587000a8d246b9f99385ae472
Showing with 3 additions and 2 deletions.
  1. +1 −0 Application.cpp
  2. +2 −2 main.cpp
View
@@ -43,6 +43,7 @@ void Application::CheckEvents( Reader& reader )
if ( event.Key.Code == sf::Key::Equal )
{
reader.GoToNextLine();
+ cout << "\tFAST FORWARD" << endl;
}
if ( event.Key.Code == sf::Key::P )
{
View
@@ -21,11 +21,11 @@ int main()
cout << "Please enter the name of the text file to read: ";
string filename = "ch8.txt";
- //cin >> filename;
+ cin >> filename;
cout << "Line to start at (0 for beginning): ";
int startLine = 0;
- //cin >> startLine;
+ cin >> startLine;
book.LoadFile( filename );

0 comments on commit 1f32999

Please sign in to comment.