blah blah blah is here! blah blah » Close

0
votes
1 answers

C# Pass by Reference Confusion

So I am trying to update a list but outside of the scope the for loop the list looses it's value. I thought about it and said ah yes that is because the object is sent by value and not reference so I made a few changes to pass it by referen ...

0
votes
2 answers

Datset skip first row on loop

Hi I'm new to datasets, so please help me with my issue. This is a win form application and I use VS2008. When I try to update a column in my database (SQL Server), using a for loop, it updates fine except that it for some reason skippi ...

1
votes
1 answers

Decrement Looping

Is a Decrement loop really more efficient ? [code] for (int j = 0; j < 200; j++) { } // OR for (int j = 200; j > 0; j--) ...

0
votes
1 answers

Help with a loop question...

I need to create a program in C# that will allow a tutor to enter the assessment marks (%) for the students in a class. The tutor must first be asked how many students there are. The program will output the highest and lowest marks. ch ...

1
votes
0 answers

Stuck on a Loop Question in C#

Questoin resolved... sorry dont know how to delete question.

1
votes
2 answers

C Sharp Combination

Hi everyone I'm trying to create all possible combinations without repetitions. I need to create 3 numbers with values from 1-10 with no repetitions. Ex: 1-2-3 1-3-4 1-2-4 1-3-5 2-3-5 and so on..... I need a ...

1
votes
8 answers

Check for existence of file, incremental filename till loop of 65535

I want to do something like this: (1) Check for existence of file with certain extension ".txt" in a directory D:\test (2) If a file does not exist, create a initial one, write something to it, and name it test_1.txt (2) If a ...

1
votes
1 answers

End of File, Beginning of File loop

I need to create a loop that needs to return a list of stores, and I'm having trouble starting the loop. I have this code piece so far, but I know the syntax is wrong because the code was originally written in VB. Here is the code: [code ...

Feedback