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 PostBut there is for loop in it but program should not contain any loop.
Let me tell you a secret, every thing deep inside of the machine, are loops and go to.
Use a search engine, that question is all over, even when I don't understand the profit of it.
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.