Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

for loop in c#

Posted on 2004-10-27
3
Medium Priority
?
231 Views
Last Modified: 2010-04-15
how would this loop look in c#


----------------------------

For i = 0 To n
            d(i, 0) = i
Next i

----------------------------

thanks
0
Comment
Question by:MrKevorkian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
brdrok earned 600 total points
ID: 12423040
i believe it would look something like this....


for(int i = 0; i < n; ++i)
{
      d(i, 0) = i
}


just something to be careful of is the "++i" vs. "i++"

0
 
LVL 1

Author Comment

by:MrKevorkian
ID: 12423276
thanks what does the ++ mean?

0
 
LVL 7

Expert Comment

by:brdrok
ID: 12423342
the ++ is to increment a variable by 1.

++i is the same as i = i + 1
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question