Fix snippets for operator|| and && by adding pair of parens.

This commit is contained in:
Jitse Niesen
2011-06-03 11:17:08 +01:00
parent 5bc4abc45e
commit 7a61a564ef
3 changed files with 4 additions and 4 deletions

View File

@@ -1,2 +1,2 @@
Array3d v(-1,2,1), w(-3,2,3);
cout << (v<w) && (v>0) << endl;
cout << ((v<w) && (v<0)) << endl;

View File

@@ -1,2 +1,2 @@
Array3d v(-1,2,1), w(-3,2,3);
cout << (v<w) || (v<0) << endl;
cout << ((v<w) || (v<0)) << endl;