¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita+ 1
C++ Logical Operators
Can I use Logical operators in a loop's condition? The tutorial only mentions them with the if statements.
2 Respuestas
+ 6
Yes, as long as the condition returns true or false you can use pretty much anything (or nothing in the case of a for loop), including functions/methods.
+ 1
@ChaoticDawg
Ok thank you :-) I must have made some mistakes trying this out...