Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Square of 2is 4

can it simply be, that you're running this from VS, and the console window closes, before you can see the output ?

btw, note, that waitKey() only has an effect, if there's a highgui window. without that, try a

int k;
cin >> k;

instead

Square of 2is 4

can it simply be, that you're running this from VS, and the console window closes, before you can see the output ?

btw, note, that waitKey() only has an effect, if there's a highgui window. without that, try a

int k;
cin >> k;

insteadinstead. (or run your exe from a cmdline, not your IDE)