Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
List
array
Johnny Nguyen
13y
1.5k
1
Reply
In the following code:
public static void ExchangeSort(int[] array)
{
int pass, i, n= array.Length;
int tempt;
for(pass=0; pass<n-1; pass++)
{
for( i= pass+1; i< n; i++)
{
if(array[i]<array[pass])
{
tempt=array[pass];
array[pass]=array[i];
array[i]=tempt;
}
}
}
}
When I replace the parameter
int[] array
with
List<int> array.
the result in a syntax error. What should I do to fix the error but I would like to use
List<int> array.
Regards
Johnny
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
sqlquery
Open a .asp page from .aspx page