From 1d69a3bc6a72affd1f71041325abd1740acdd344 Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Wed, 10 Aug 2011 11:49:10 +0000 Subject: [PATCH] fixed compile error on ubuntu64 --- samples/cpp/connected_components.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/cpp/connected_components.cpp b/samples/cpp/connected_components.cpp index 08f7b0c2c..ce9a41ef3 100644 --- a/samples/cpp/connected_components.cpp +++ b/samples/cpp/connected_components.cpp @@ -36,11 +36,11 @@ void on_trackbar(int, void*) void help() { - printf("\n This program demonstrates connected components and use of the trackbar\n" + cout << "\n This program demonstrates connected components and use of the trackbar\n" "Usage: \n" " ./connected_components \n" "The image is converted to grayscale and displayed, another image has a trackbar\n" - "that controls thresholding and thereby the extracted contours which are drawn in color\n"); + "that controls thresholding and thereby the extracted contours which are drawn in color\n"; } const char* keys = @@ -57,7 +57,7 @@ int main( int argc, const char** argv ) if(img.empty()) { - printf("Could not read input image file: %s\n", inputImage.c_str()); + cout << "Could not read input image file: " << inputImage << endl; return -1; }