im wondering if there is a plain do loop instead of do while?

Recommended Answers

All 6 Replies

No.

well then how can i get around this problem?

What are you trying to do?

well i was going to make a loop for exponets but on a last post i found out that there is already a function in c++ for them so i dont need a loop for that anymore but it would be cool to have a loop that can give all the possible permutations of any given number of variables.

For manually calculating exponenets, you would use a for() loop.

And to do all possible permutations on an array, you're going to want to use recursion.

o i just read about for loops and the for loop is the "do loop" thing i was looking for

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.