Just wondering if the condition of an if
statement can be a for
loop in C++14. For example:
using namespace std; if (for (int i = 0; i < 10; i++)){ cout << "The number now is " << i << endl; }
https://stackoverflow.com/questions/65756911/can-an-if-condition-be-a-for-loop January 17, 2021 at 10:58AM
没有评论:
发表评论