Looping

Repeat to the Beginning

Page 1 of 1

2 Replies - 2929 Views - Last Post: 20 April 2006 - 07:21 PM Rate Topic: -----

#1 legault  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 14-February 06

Looping

Posted 18 April 2006 - 11:22 AM

How should I write a part of a program that will allow me to ask the user if they want to repeat to the beginning, and if the do to then repeat. If not, they just move on. Thx
Is This A Good Question/Topic? 0
  • +

Replies To: Looping

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Looping

Posted 18 April 2006 - 11:50 AM

What language? A while loop based on user input is usually the best way, or for partial repeats, a simply if statement...providing your program is structured properly.
Was This Post Helpful? 0
  • +
  • -

#3 legault  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 14-February 06

Re: Looping

Posted 20 April 2006 - 07:21 PM

I'm programming in C++
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1