diff --git a/example_09-05.cpp b/example_09-05.cpp index b4a3e7d..849b326 100644 --- a/example_09-05.cpp +++ b/example_09-05.cpp @@ -5,7 +5,19 @@ #include #include #include +#include + +using namespace std; + int main( int argc, char* argv[] ) { + cout << "\nExample 9-5. An example program ch4_qt.cpp, which takes a single argument" + << "\nindicating a video file; that video file will be replayed inside of a Qt object" + << "\nthat we will define, called QMoviePlayer" + << "\nCall:\n" << argv[0] << " " + << "\nExample:\n" << argv[0] << " ../tree.avi\n" << endl; + if(argc != 2) + return -1; + QApplication app( argc, argv ); QMoviePlayer mp; mp.open( argv[1] );