Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
for-loops
- Page 1
Re: how to create a simple elevator simulation?
Programming
Software Development
1 Day Ago
by trueframe
To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use
loops
and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy.
Re: Help with functions - basics
Programming
1 Month Ago
by jkon
It seems that the issue has nothing to do with C++ or with functions. If you are new to programming why not try some tutorials in an easy accessible language (like JavaScript for example) and when you understand a few basics ( like null , functions , variables ,
loops
, conditions ) move to a C++ tutorial for beginners ?
Re: Loops and conditions
Programming
Databases
12 Years Ago
by abelLazm
Loops
in sql qork with cursors check these links [URL="…
Re: help with loops
Programming
Software Development
15 Years Ago
by Lerner
Loops
have to be controlled by something. That is, they need … to do want you want is to use for()
loops
. You use for
loops
in your first post, and your syntax is…
Re: while and for loops
Programming
Software Development
13 Years Ago
by Lerner
loops
and arrays (and other containers for that matter) are a match made in heaven. Put all the grades results in one or more array(s). Then use
loops
to do the calculations on lines 74, 75 and whereever else you need to.
Re: Need help!!! homework integer number
Programming
Software Development
4 Years Ago
by rproffitt
Loops
can use the do, for, while constructs and your exit can be done in many ways. Why I note that is, the homework stating "Using
loops
" gave you no less than three or all loop mechanisms offered by C#. So that can't be what's stopping you here. Supply your code so far and tell which line or function is stopping you.
Re: Make a diamond with the help of loop
Programming
2 Years Ago
by Dani
Loops
do repetitive things.
Loops
also count with each iteration. When you think of a diamond written in ASCII asterisks, you can think it starts off with one asterisk on line 1, then 2, then 3, then 4 … each line is indented by one character less … then eventually it does the opposite.
Re: Creating an OS
Programming
Software Development
17 Years Ago
by ~s.o.s~
Loops
are a very important constructs in programming. Imagine you want …;> record[2] ; // ... and so on till 100 [/code] With
loops
its like: [code=c] for( int i = 0; i <…
Re: min value in array ?
Programming
Software Development
14 Years Ago
by Fbody
… runs, it is called an "iteration". Most for
loops
use an index variable to control the loop. In your…
Re: Need Help With printing Backwards
Programming
Software Development
19 Years Ago
by jwenting
loops
can be traversed in either direction. Decrease your counter from the length of a string to 0 while printing. That's all the hint you should need.
Re: i need a good c++ program for vista
Programming
Software Development
16 Years Ago
by Nick Evan
Loops
are the same as in Turbo C++
Re: Set cookie by typing url
Programming
Web Development
16 Years Ago
by mellamokb
Loops
through all of the QueryString variables and sets a cookie for each one. [code] For Each strKey in Request.QueryString Response.Cookies(strKey) = Request.QueryString(strKey) Next [/code] ~ mellamokb
Re: If else statement
Programming
Software Development
15 Years Ago
by csurfer
Loops
are always better than goto but with goto I think …
Re: Simple Question
Programming
Software Development
14 Years Ago
by FlamingClaw
Loops
? while.. do begin.. end ; or repeat...until....; or for x:=…
Re: Loop does not work well with arrays?
Programming
Software Development
13 Years Ago
by jon.kiparsky
Loops
work very well with arrays. If you're having trouble, I don't see where it is in a quick scan through your code. Maybe you can be more specific about what functionality is giving you trouble, or even point us to a particular method?
Re: ".class expected" error. Please Help!
Programming
Software Development
11 Years Ago
by NormR1
>
loops
without the error message. What happens when you enter bad data?
Re: How to Add numbers 1-100 without writing 1, 2, 3, 4, etc
Programming
Software Development
11 Years Ago
by deceptikon
Loops
are [programming 101](http://msdn.microsoft.com/en-US/library/t12220k0.aspx). You really shouldn't be trying to write a GUI until you at least understand the most basic core concepts of the language. It's also not very wise to jump right in without any kind of beginner text; you should find yourself a book on VB.NET, any of them will do.
Re: Birthday Reminder for all Matching Listview Subitems
Programming
Software Development
11 Years Ago
by Philippe.Lahaie
[
loops
](http://en.wikibooks.org/wiki/Visual_Basic_.NET/Loop_statements) [if/else](…
Re: C# printing Dictionary<> with List<>
Programming
Software Development
11 Years Ago
by Momerath
Loops
foreach(String key in dic.Keys) { foreach(String item in dic[key]) { Console.Write("{0}, ", item); } Console.WriteLine(); }
Re: Reading Multiple text files
Programming
Software Development
10 Years Ago
by Lerner
Loops
allow you to the same thing over and over again. Arrays contain information of a similar type. Using a strategy that combines those two topics should allow you to do what you want.
Re: I could not show the bullet
Programming
Software Development
10 Years Ago
by JamesCherrill
Loops
with a sleep are always a problem - too many ways …
Re: 2D array help
Programming
Software Development
10 Years Ago
by Ancient Dragon
>
loops
are the hardest thing. Yes they do seem difficult when you are first learning -- But, like most everything else you do, a little practice helps clarify things in your head. Been there, and done that too.
Re: Goto statements: When are they useful?
Programming
Software Development
9 Years Ago
by rubberman
Loops
have an implicit goto when the terminating condition is met, …
Re: While loop
Programming
Software Development
8 Years Ago
by Sean Francis
Loops
and conditional expressions will only execute the code inside them when their conditions are `True`. Once their conditions result into `False`, they will stop executing the code inside them.
Loops
Programming
Software Development
20 Years Ago
by Dani
…font] [/indent]Accumulators are often used in conjunction with
loops
. Accumulators are variables which are continuously added to throughout … be shown to the professor. [b]For
Loops
[/b] For
loops
can be considered a more specific form of… directly to that of a mathematical summation. For
loops
involve a built-in accumulator variable which can be…
Re: Loops in Python
Programming
Software Development
17 Years Ago
by vegaseat
The "for loop"
loops
(iterates) through the items of a sequence (string, list, tuple,…, set ...). The "while loop"
loops
until a condition is met. Though the two
loops
are different beasts, they can overlap…;I should not cuss!" [/code]Yes, there are other
loops
in Python. For instance a recursive function (a function that…
Re: loops algorithm mistake?
Programming
Software Development
13 Years Ago
by NewOrder
… if you look at valid 1. it has that 2
loops
. say valid2 is wrong, and i cant debug it. still… pluses in some places in the
loops
. Thats all. i copied and pasted the same
loops
3 times. when the method gets… row and column variables it decides which one of the
loops
to use (more accurately, it is the type of if…
Loops and creating a triangle with #'s
Programming
Software Development
16 Years Ago
by chubbs1900
… self teach C++ and I am to the point of
loops
. Now I was working on how to create a triangle… with manipulating nested
loops
to create a triangle with numbers. Here is the code…
loops
Programming
Software Development
12 Years Ago
by dgar
… the knowledge of handling questions of such Creation.kindly use
loops
when coding... 1.Create a Java file named Lab3_1.java… should not keep checking for additional divisors 2. Use nested
loops
to print out each of the following patterns. Create a…
loops with continue
Programming
Software Development
11 Years Ago
by poloblue
…, I'm having problems with this assignment that deals with
loops
that implements the continue statement. Can someone check the…
loops
that I have implemented on Part B and Part C …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC