Merge pull request #8282 from vskarlsruhe:patch-3
authorVadim Pisarevsky <vadim.pisarevsky@gmail.com>
Thu, 2 Mar 2017 11:18:26 +0000 (11:18 +0000)
committerVadim Pisarevsky <vadim.pisarevsky@gmail.com>
Thu, 2 Mar 2017 11:18:26 +0000 (11:18 +0000)
1  2 
samples/cpp/tutorial_code/core/AddingImages/AddingImages.cpp

@@@ -21,13 -22,13 +22,13 @@@ int main( void 
     Mat src1, src2, dst;
  
     /// Ask the user enter alpha
-    std::cout<<" Simple Linear Blender "<<std::endl;
-    std::cout<<"-----------------------"<<std::endl;
-    std::cout<<"* Enter alpha [0-1]: ";
-    std::cin>>input;
+    cout << " Simple Linear Blender " << endl;
+    cout << "-----------------------" << endl;
+    cout << "* Enter alpha [0-1]: ";
+    cin >> input;
  
     // We use the alpha provided by the user if it is between 0 and 1
 -   if( alpha >= 0 && alpha <= 1 )
 +   if( input >= 0 && input <= 1 )
       { alpha = input; }
  
     //![load]