473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Sort Numbers than send to DB?

I have six textbox controls on my webform that allows the user to enter any
numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How can
accomplish this task? Thanks!
Nov 18 '05 #1
11 1917
Easiest way is to use the ArrayList Sort method.

//sorry if you were looking for this in vb
ArrayList list = new ArrayList();

list.Add( Int32.Parse( txt1.Text ) );
list.Add( Int32.Parse( txt2.Text ) );
list.Add( Int32.Parse( txt3.Text ) );
list.Add( Int32.Parse( txt4.Text ) );
list.Add( Int32.Parse( txt5.Text ) );
list.Add( Int32.Parse( txt6.Text ) );

//this will place them in order inside the array.
list.Sort();

//this will pull them back out in order now.
foreach( int i in list )
{

}

HTH,

bill
"Leon" <vn*****@msn.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
I have six textbox controls on my webform that allows the user to enter any numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How can accomplish this task? Thanks!

Nov 18 '05 #2
Thanks for your response! But...
but then how work apply the sorted numbers to my database stored procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
Easiest way is to use the ArrayList Sort method.

//sorry if you were looking for this in vb
ArrayList list = new ArrayList();

list.Add( Int32.Parse( txt1.Text ) );
list.Add( Int32.Parse( txt2.Text ) );
list.Add( Int32.Parse( txt3.Text ) );
list.Add( Int32.Parse( txt4.Text ) );
list.Add( Int32.Parse( txt5.Text ) );
list.Add( Int32.Parse( txt6.Text ) );

//this will place them in order inside the array.
list.Sort();

//this will pull them back out in order now.
foreach( int i in list )
{

}

HTH,

bill
"Leon" <vn*****@msn.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
I have six textbox controls on my webform that allows the user to enter

any
numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How

can
accomplish this task? Thanks!


Nov 18 '05 #3
> but then how work apply the sorted numbers to my database stored procedure
parameters?
After looking over your stored procedure, and its parameters, and the code
that populates them from your current code, I can say that you never posted
your stored procedure, its parameters, or any of your code.

One at a time? Very carefully? Post more information?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Leon" <vn*****@msn.com> wrote in message
news:OH**************@TK2MSFTNGP14.phx.gbl... Thanks for your response! But...
but then how work apply the sorted numbers to my database stored procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
Easiest way is to use the ArrayList Sort method.

//sorry if you were looking for this in vb
ArrayList list = new ArrayList();

list.Add( Int32.Parse( txt1.Text ) );
list.Add( Int32.Parse( txt2.Text ) );
list.Add( Int32.Parse( txt3.Text ) );
list.Add( Int32.Parse( txt4.Text ) );
list.Add( Int32.Parse( txt5.Text ) );
list.Add( Int32.Parse( txt6.Text ) );

//this will place them in order inside the array.
list.Sort();

//this will pull them back out in order now.
foreach( int i in list )
{

}

HTH,

bill
"Leon" <vn*****@msn.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
I have six textbox controls on my webform that allows the user to enter

any
numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How

can
accomplish this task? Thanks!



Nov 18 '05 #4
Thanks for your response.. But
I don't understand what you mean by..

"After looking over your stored procedure, and its parameters, and the code
that populates them from your current code, I can say that you never posted
your stored procedure, its parameters, or any of your code."

This is my original question..
I have six textbox controls on my webform that allows the user to enter any
numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How can
accomplish this task? Thanks again!
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
but then how work apply the sorted numbers to my database stored
procedure
parameters?


After looking over your stored procedure, and its parameters, and the code
that populates them from your current code, I can say that you never
posted
your stored procedure, its parameters, or any of your code.

One at a time? Very carefully? Post more information?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Leon" <vn*****@msn.com> wrote in message
news:OH**************@TK2MSFTNGP14.phx.gbl...
Thanks for your response! But...
but then how work apply the sorted numbers to my database stored
procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in
message
news:%2***************@TK2MSFTNGP14.phx.gbl...
> Easiest way is to use the ArrayList Sort method.
>
> //sorry if you were looking for this in vb
> ArrayList list = new ArrayList();
>
> list.Add( Int32.Parse( txt1.Text ) );
> list.Add( Int32.Parse( txt2.Text ) );
> list.Add( Int32.Parse( txt3.Text ) );
> list.Add( Int32.Parse( txt4.Text ) );
> list.Add( Int32.Parse( txt5.Text ) );
> list.Add( Int32.Parse( txt6.Text ) );
>
> //this will place them in order inside the array.
> list.Sort();
>
> //this will pull them back out in order now.
> foreach( int i in list )
> {
>
> }
>
> HTH,
>
> bill
>
>
> "Leon" <vn*****@msn.com> wrote in message
> news:eC**************@TK2MSFTNGP09.phx.gbl...
>> I have six textbox controls on my webform that allows the user to
>> enter
> any
>> numbers from 1 to 25 in any order. However, I would like to sort those
>> numbers from least to greatest before sending them to the database.
>> How
> can
>> accomplish this task? Thanks!
>>
>>
>
>



Nov 18 '05 #5
what do u mean by "but then how work apply the sorted numbers to my database
stored procedure
parameters? " ???

If you can give details about ur stored proc and its parameters with your
source code, somebody might give a solution.

Vinay
"Leon" wrote:
Thanks for your response! But...
but then how work apply the sorted numbers to my database stored procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
Easiest way is to use the ArrayList Sort method.

//sorry if you were looking for this in vb
ArrayList list = new ArrayList();

list.Add( Int32.Parse( txt1.Text ) );
list.Add( Int32.Parse( txt2.Text ) );
list.Add( Int32.Parse( txt3.Text ) );
list.Add( Int32.Parse( txt4.Text ) );
list.Add( Int32.Parse( txt5.Text ) );
list.Add( Int32.Parse( txt6.Text ) );

//this will place them in order inside the array.
list.Sort();

//this will pull them back out in order now.
foreach( int i in list )
{

}

HTH,

bill
"Leon" <vn*****@msn.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
I have six textbox controls on my webform that allows the user to enter

any
numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How

can
accomplish this task? Thanks!



Nov 18 '05 #6
Here is the stored procedure, but I have not wrote any source code because I
trying to figure-out the best way to go about accomplishing my mission which
is I have six textbox controls on my webform that allows the user to enter
any numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. Thanks!

CREATE PROCEDURE AddNumbers
(
@Num1 tinyint,
@Num2 tinyint,
@Num3 tinyint,
@Num4 tinyint,
@Num5 tinyint,
@Num6 tinyint
)
AS
INSERT Number (
Num1,
Num2,
Num3,
Num4,
Num5,
Num6
) VALUES (
@Num1,
@Num2,
@Num3,
@Num4,
@Num5,
@Num6
)
GO
"vinay" <vi***@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
what do u mean by "but then how work apply the sorted numbers to my
database
stored procedure
parameters? " ???

If you can give details about ur stored proc and its parameters with your
source code, somebody might give a solution.

Vinay
"Leon" wrote:
Thanks for your response! But...
but then how work apply the sorted numbers to my database stored
procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in
message
news:%2***************@TK2MSFTNGP14.phx.gbl...
> Easiest way is to use the ArrayList Sort method.
>
> //sorry if you were looking for this in vb
> ArrayList list = new ArrayList();
>
> list.Add( Int32.Parse( txt1.Text ) );
> list.Add( Int32.Parse( txt2.Text ) );
> list.Add( Int32.Parse( txt3.Text ) );
> list.Add( Int32.Parse( txt4.Text ) );
> list.Add( Int32.Parse( txt5.Text ) );
> list.Add( Int32.Parse( txt6.Text ) );
>
> //this will place them in order inside the array.
> list.Sort();
>
> //this will pull them back out in order now.
> foreach( int i in list )
> {
>
> }
>
> HTH,
>
> bill
>
>
> "Leon" <vn*****@msn.com> wrote in message
> news:eC**************@TK2MSFTNGP09.phx.gbl...
>> I have six textbox controls on my webform that allows the user to
>> enter
> any
>> numbers from 1 to 25 in any order. However, I would like to sort those
>> numbers from least to greatest before sending them to the database.
>> How
> can
>> accomplish this task? Thanks!
>>
>>
>
>


Nov 18 '05 #7
You would have to create a parameter to hold each of your values in the new
array.
So..
Dim cmd as new Sqlcommand("what ever")

cmd.parameters.add("@value1" , list(0))
cmd.parameters.add("@value2" , list(1))
.......
cmd.parameters.add("@value5" , list(4))
cmd.parameters.add("@value6" , list(5))

list is your sorted arrayList.

Is this what you mean?


"Leon" wrote:
Thanks for your response! But...
but then how work apply the sorted numbers to my database stored procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
Easiest way is to use the ArrayList Sort method.

//sorry if you were looking for this in vb
ArrayList list = new ArrayList();

list.Add( Int32.Parse( txt1.Text ) );
list.Add( Int32.Parse( txt2.Text ) );
list.Add( Int32.Parse( txt3.Text ) );
list.Add( Int32.Parse( txt4.Text ) );
list.Add( Int32.Parse( txt5.Text ) );
list.Add( Int32.Parse( txt6.Text ) );

//this will place them in order inside the array.
list.Sort();

//this will pull them back out in order now.
foreach( int i in list )
{

}

HTH,

bill
"Leon" <vn*****@msn.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
I have six textbox controls on my webform that allows the user to enter

any
numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How

can
accomplish this task? Thanks!



Nov 18 '05 #8
We need to see the code that you have now that is sending to database. I
will try to guess what you want.

ArrayList list = new ArrayList();

//add the numbers to the list
list.Add( Int32.Parse( txt1.Text ) );
list.Add( Int32.Parse( txt2.Text ) );
list.Add( Int32.Parse( txt3.Text ) );
list.Add( Int32.Parse( txt4.Text ) );
list.Add( Int32.Parse( txt5.Text ) );
list.Add( Int32.Parse( txt6.Text ) );

//this will sort the numbers
list.Sort();

SendToDatabase( list[0] );
SendToDatabase( list[1] );
SendToDatabase( list[2] );
SendToDatabase( list[3] );
SendToDatabase( list[4] );
SendToDatabase( list[5] );

This will send the numbers in order to the database. This is assuming you
have a method defined called SendToDatabase(). And inside this method you
make your database connection, create your command text, etc. If you need
help on inserting something to a database then ask that question, but add
things like....Sql Server, Access, using Stored Procedures, Xml DataSet,
etc.

We will all need more information if this is not what you are looking for.
Your original question was how to sort them BEFORE sending to the database.
The list.Sort() method will sort them.

If you have another question, please ask it, but repeating your first
question will just get a similiar answer.

bill

"Leon" <vn*****@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Thanks for your response.. But
I don't understand what you mean by..

"After looking over your stored procedure, and its parameters, and the code that populates them from your current code, I can say that you never posted your stored procedure, its parameters, or any of your code."

This is my original question..
I have six textbox controls on my webform that allows the user to enter any numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How can accomplish this task? Thanks again!
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
but then how work apply the sorted numbers to my database stored
procedure
parameters?


After looking over your stored procedure, and its parameters, and the code that populates them from your current code, I can say that you never
posted
your stored procedure, its parameters, or any of your code.

One at a time? Very carefully? Post more information?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Leon" <vn*****@msn.com> wrote in message
news:OH**************@TK2MSFTNGP14.phx.gbl...
Thanks for your response! But...
but then how work apply the sorted numbers to my database stored
procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in
message
news:%2***************@TK2MSFTNGP14.phx.gbl...
> Easiest way is to use the ArrayList Sort method.
>
> //sorry if you were looking for this in vb
> ArrayList list = new ArrayList();
>
> list.Add( Int32.Parse( txt1.Text ) );
> list.Add( Int32.Parse( txt2.Text ) );
> list.Add( Int32.Parse( txt3.Text ) );
> list.Add( Int32.Parse( txt4.Text ) );
> list.Add( Int32.Parse( txt5.Text ) );
> list.Add( Int32.Parse( txt6.Text ) );
>
> //this will place them in order inside the array.
> list.Sort();
>
> //this will pull them back out in order now.
> foreach( int i in list )
> {
>
> }
>
> HTH,
>
> bill
>
>
> "Leon" <vn*****@msn.com> wrote in message
> news:eC**************@TK2MSFTNGP09.phx.gbl...
>> I have six textbox controls on my webform that allows the user to
>> enter
> any
>> numbers from 1 to 25 in any order. However, I would like to sort those >> numbers from least to greatest before sending them to the database.
>> How
> can
>> accomplish this task? Thanks!
>>
>>
>
>



Nov 18 '05 #9
thanks!

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:eL**************@TK2MSFTNGP12.phx.gbl...
We need to see the code that you have now that is sending to database. I
will try to guess what you want.

ArrayList list = new ArrayList();

//add the numbers to the list
list.Add( Int32.Parse( txt1.Text ) );
list.Add( Int32.Parse( txt2.Text ) );
list.Add( Int32.Parse( txt3.Text ) );
list.Add( Int32.Parse( txt4.Text ) );
list.Add( Int32.Parse( txt5.Text ) );
list.Add( Int32.Parse( txt6.Text ) );

//this will sort the numbers
list.Sort();

SendToDatabase( list[0] );
SendToDatabase( list[1] );
SendToDatabase( list[2] );
SendToDatabase( list[3] );
SendToDatabase( list[4] );
SendToDatabase( list[5] );

This will send the numbers in order to the database. This is assuming you
have a method defined called SendToDatabase(). And inside this method you
make your database connection, create your command text, etc. If you need
help on inserting something to a database then ask that question, but add
things like....Sql Server, Access, using Stored Procedures, Xml DataSet,
etc.

We will all need more information if this is not what you are looking for.
Your original question was how to sort them BEFORE sending to the
database.
The list.Sort() method will sort them.

If you have another question, please ask it, but repeating your first
question will just get a similiar answer.

bill

"Leon" <vn*****@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Thanks for your response.. But
I don't understand what you mean by..

"After looking over your stored procedure, and its parameters, and the

code
that populates them from your current code, I can say that you never

posted
your stored procedure, its parameters, or any of your code."

This is my original question..
I have six textbox controls on my webform that allows the user to enter

any
numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How

can
accomplish this task? Thanks again!
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
>> but then how work apply the sorted numbers to my database stored
>> procedure
>> parameters?
>
> After looking over your stored procedure, and its parameters, and the code > that populates them from your current code, I can say that you never
> posted
> your stored procedure, its parameters, or any of your code.
>
> One at a time? Very carefully? Post more information?
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
>
> "Leon" <vn*****@msn.com> wrote in message
> news:OH**************@TK2MSFTNGP14.phx.gbl...
>> Thanks for your response! But...
>> but then how work apply the sorted numbers to my database stored
>> procedure
>> parameters?
>>
>> "William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in
>> message
>> news:%2***************@TK2MSFTNGP14.phx.gbl...
>> > Easiest way is to use the ArrayList Sort method.
>> >
>> > //sorry if you were looking for this in vb
>> > ArrayList list = new ArrayList();
>> >
>> > list.Add( Int32.Parse( txt1.Text ) );
>> > list.Add( Int32.Parse( txt2.Text ) );
>> > list.Add( Int32.Parse( txt3.Text ) );
>> > list.Add( Int32.Parse( txt4.Text ) );
>> > list.Add( Int32.Parse( txt5.Text ) );
>> > list.Add( Int32.Parse( txt6.Text ) );
>> >
>> > //this will place them in order inside the array.
>> > list.Sort();
>> >
>> > //this will pull them back out in order now.
>> > foreach( int i in list )
>> > {
>> >
>> > }
>> >
>> > HTH,
>> >
>> > bill
>> >
>> >
>> > "Leon" <vn*****@msn.com> wrote in message
>> > news:eC**************@TK2MSFTNGP09.phx.gbl...
>> >> I have six textbox controls on my webform that allows the user to
>> >> enter
>> > any
>> >> numbers from 1 to 25 in any order. However, I would like to sort those >> >> numbers from least to greatest before sending them to the database.
>> >> How
>> > can
>> >> accomplish this task? Thanks!
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 18 '05 #10
yes! thanks.
"Tampa .NET Koder" <Ta***********@discussions.microsoft.com> wrote in
message news:31**********************************@microsof t.com...
You would have to create a parameter to hold each of your values in the
new
array.
So..
Dim cmd as new Sqlcommand("what ever")

cmd.parameters.add("@value1" , list(0))
cmd.parameters.add("@value2" , list(1))
......
cmd.parameters.add("@value5" , list(4))
cmd.parameters.add("@value6" , list(5))

list is your sorted arrayList.

Is this what you mean?


"Leon" wrote:
Thanks for your response! But...
but then how work apply the sorted numbers to my database stored
procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in
message
news:%2***************@TK2MSFTNGP14.phx.gbl...
> Easiest way is to use the ArrayList Sort method.
>
> //sorry if you were looking for this in vb
> ArrayList list = new ArrayList();
>
> list.Add( Int32.Parse( txt1.Text ) );
> list.Add( Int32.Parse( txt2.Text ) );
> list.Add( Int32.Parse( txt3.Text ) );
> list.Add( Int32.Parse( txt4.Text ) );
> list.Add( Int32.Parse( txt5.Text ) );
> list.Add( Int32.Parse( txt6.Text ) );
>
> //this will place them in order inside the array.
> list.Sort();
>
> //this will pull them back out in order now.
> foreach( int i in list )
> {
>
> }
>
> HTH,
>
> bill
>
>
> "Leon" <vn*****@msn.com> wrote in message
> news:eC**************@TK2MSFTNGP09.phx.gbl...
>> I have six textbox controls on my webform that allows the user to
>> enter
> any
>> numbers from 1 to 25 in any order. However, I would like to sort those
>> numbers from least to greatest before sending them to the database.
>> How
> can
>> accomplish this task? Thanks!
>>
>>
>
>


Nov 18 '05 #11
Hi Leon,

I was responding to your response, which is quoted directly under mine in
this message. However, I can see that you asked this question in 2 separte
threads, and that you did post the Stored Procedure code after I had posted
my response, and also got the correct answer, which is, to add the
parameters in the order in which they appear after sorting.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Leon" <vn*****@msn.com> wrote in message
news:#z**************@TK2MSFTNGP12.phx.gbl...
Thanks for your response.. But
I don't understand what you mean by..

"After looking over your stored procedure, and its parameters, and the code that populates them from your current code, I can say that you never posted your stored procedure, its parameters, or any of your code."

This is my original question..
I have six textbox controls on my webform that allows the user to enter any numbers from 1 to 25 in any order. However, I would like to sort those
numbers from least to greatest before sending them to the database. How can accomplish this task? Thanks again!
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
but then how work apply the sorted numbers to my database stored
procedure
parameters?


After looking over your stored procedure, and its parameters, and the code that populates them from your current code, I can say that you never
posted
your stored procedure, its parameters, or any of your code.

One at a time? Very carefully? Post more information?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Leon" <vn*****@msn.com> wrote in message
news:OH**************@TK2MSFTNGP14.phx.gbl...
Thanks for your response! But...
but then how work apply the sorted numbers to my database stored
procedure
parameters?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in
message
news:%2***************@TK2MSFTNGP14.phx.gbl...
> Easiest way is to use the ArrayList Sort method.
>
> //sorry if you were looking for this in vb
> ArrayList list = new ArrayList();
>
> list.Add( Int32.Parse( txt1.Text ) );
> list.Add( Int32.Parse( txt2.Text ) );
> list.Add( Int32.Parse( txt3.Text ) );
> list.Add( Int32.Parse( txt4.Text ) );
> list.Add( Int32.Parse( txt5.Text ) );
> list.Add( Int32.Parse( txt6.Text ) );
>
> //this will place them in order inside the array.
> list.Sort();
>
> //this will pull them back out in order now.
> foreach( int i in list )
> {
>
> }
>
> HTH,
>
> bill
>
>
> "Leon" <vn*****@msn.com> wrote in message
> news:eC**************@TK2MSFTNGP09.phx.gbl...
>> I have six textbox controls on my webform that allows the user to
>> enter
> any
>> numbers from 1 to 25 in any order. However, I would like to sort those >> numbers from least to greatest before sending them to the database.
>> How
> can
>> accomplish this task? Thanks!
>>
>>
>
>



Nov 18 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Christopher Jeris | last post by:
I am relatively new to JavaScript, though not to programming, and I'm having trouble finding the idiomatic JS solution to the following problem. I have a table with (say) fields f1, f2, f3. I...
15
by: David | last post by:
sorry for the last post, itchy fingers. I'm having a bit of difficulty sorting images named in sequential numerical order. Here are the image names and how I need them sorted. image1.jpg...
1
by: strotee | last post by:
#include <iostream> #include <ctime> using namespace std; // function declarations void swap(int *a, int *b); void sort(int arr, int beg, int end); int main() {
19
by: David | last post by:
Hi all, A while back I asked how to sort an array of strings which would have numerals and I wanted to put them in sequential numerical order. For example: myArray = "file1"; myArray =...
21
by: yeti349 | last post by:
Hi, I'm using the following code to retrieve data from an xml file and populate a javascript array. The data is then displayed in html table form. I would like to then be able to sort by each...
4
by: Tony WONG | last post by:
i have a number of forms with fax numbers to come up into arrays and then combine to string. after that i design the flow 1. break the string to array now the string looks like this...
7
by: ^cypis^ vel. SQ9JTI | last post by:
Hi, i need your help. I have to prepare a homework, easy program, which will be sorting the values from txt file and writing the solution to another txt file. It has to be a bucket sort. Have...
75
by: At_sea_with_C | last post by:
Hello all, I have written an ascending sort routine for floats. This seems to do the job, but for elements over 10,000, it gets awfully slow. A lot of useless comparisions with previously sorted...
9
by: mosullivan | last post by:
I can't figure out how to print after every pass through the bubble sort. I'm supposed to display the sort after every pass through the loop. Below is what I have so far. #include <stdio.h>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.