0
Can I add loops like if and while in class(C++)?
4 Answers
+ 2
You can, as long as you write them (loops & conditionals) inside member functions đ
+ 1
Here's an example
https://code.sololearn.com/c2T08o5elLEJ/?ref=app
0
Can you give me simple example if you don't mind?
0
Or resource link