Hi every body , I got one problem that how can we generate 1 to n numbers without using any loop and without using recursion function ?
san_sarangkar 0 Newbie Poster
Recommended Answers
Jump to PostThere's a generate_n function in the <algorithm> header.
Jump to Post>But there is for loop in it
How do you know? It might be a while loop, or it might even be magic. Coming up with a ridiculous excuse to call a library function is just as reasonable as coming up with a ridiculous requirement of doing something an unknown …
All 7 Replies
Narue 5,707 Bad Cop Team Colleague
san_sarangkar 0 Newbie Poster
Aia 1,977 Nearly a Posting Maven
Narue 5,707 Bad Cop Team Colleague
stilllearning 148 Posting Whiz
Narue 5,707 Bad Cop Team Colleague
Aia 1,977 Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.