Can I add loops like if and while in class(C++)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can I add loops like if and while in class(C++)?

26th Jun 2020, 5:03 AM
Joocaar Jucfe
4 Answers
+ 2
You can, as long as you write them (loops & conditionals) inside member functions 👍
26th Jun 2020, 5:06 AM
Ipang
26th Jun 2020, 5:53 AM
Ipang
0
Can you give me simple example if you don't mind?
26th Jun 2020, 5:07 AM
Joocaar Jucfe
0
Or resource link
26th Jun 2020, 5:07 AM
Joocaar Jucfe