?
Solved

for loop in c#

Posted on 2004-10-27
3
Medium Priority
?
233 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
  • 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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses

599 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