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
2 | No.2 Revision |
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)