I am taking the C ++ class right now, and I know that the for loop will work like that, but I was wondering if it was βnormalβ or βrightβ
for (int i = 0; getline(cin, input); i++)
If it is instead
int i = 0;
while (getline(cin, input))
i++;
I'm just curious because I know that the for loop should be a contour, but the condition for this is not related to the number of times that I control.
source
share